groovy universe is not supported anymore

big_cleanup
Virgile Retault 2 years ago
parent c3e70e2b5c
commit c33d84d50d

@ -1,6 +1,6 @@
#!/usr/bin/env ansible-playbook #!/usr/bin/env ansible-playbook
--- ---
- hosts: apt_proxy - hosts: apt_cacher_ng
roles: roles:
- apt_cacher_ng - apt_cacher_ng

@ -33,12 +33,16 @@ technetium
[proxy] [proxy]
hindley hindley
[apt_proxy:children]
vpn
apt_cacher_ng
[vpn] [vpn]
hindley hindley
sulfur sulfur
technetium technetium
[apt_proxy] [apt_cacher_ng]
hindley hindley
[prometheus] [prometheus]

@ -1,27 +1,27 @@
--- ---
- name: Use a newer version of apt cacher nc for ubuntu 20.04 #- name: Use a newer version of apt cacher nc for ubuntu 20.04
block: # block:
- name: Set the default release # - name: Set the default release
lineinfile: # lineinfile:
path: /etc/apt/apt.conf.d/01-vendor-ubuntu # path: /etc/apt/apt.conf.d/01-vendor-ubuntu
regexp: '^APT::Default-Release ' # regexp: '^APT::Default-Release '
line: "APT::Default-Release \"{{ ansible_facts['lsb']['codename'] }}\";" # line: "APT::Default-Release \"{{ ansible_facts['lsb']['codename'] }}\";"
- name: Pin node exporter # - name: Pin node exporter
copy: # copy:
dest: /etc/apt/preferences.d/pin-apt-cacher-nc # dest: /etc/apt/preferences.d/pin-apt-cacher-nc
content: | # content: |
Package: apt-cacher-nc # Package: apt-cacher-nc
Pin: release n={{ ansible_facts['lsb']['codename'] }} # Pin: release n={{ ansible_facts['lsb']['codename'] }}
Pin-Priority: -10 # Pin-Priority: -10
Package: apt-cacher-nc # Package: apt-cacher-nc
Pin: release n=groovy # Pin: release n=groovy
Pin-Priority: 900 # Pin-Priority: 900
- name: Add the repo from groovy # - name: Add the repo from groovy
apt_repository: # apt_repository:
repo: deb http://fr.archive.ubuntu.com/ubuntu groovy universe # repo: deb http://fr.archive.ubuntu.com/ubuntu groovy universe
state: present # state: present
when: ansible_facts['lsb']['id'] == 'Ubuntu' and ansible_facts['lsb']['codename'] == 'focal' # when: ansible_facts['lsb']['id'] == 'Ubuntu' and ansible_facts['lsb']['codename'] == 'focal'
- name: Install apt-cacher-ng - name: Install apt-cacher-ng
apt: apt:

Loading…
Cancel
Save