Skip to content

Commit f1dd05b

Browse files
committed
Remove old cvmfs api repo on modern ubuntu
Fixes ``` root@gat-1:/etc/apt# apt update E: Conflicting values set for option ALLOW_INSECURE regarding source <set> <unset> E: The list of sources could not be read. ```
1 parent 856ebe7 commit f1dd05b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tasks/init_debian.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333
repo: deb [allow-insecure=true] https://cvmrepo.web.cern.ch/cvmrepo/apt/ {{ ansible_distribution_release }}-prod main
3434
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release in ('bionic', 'xenial', 'precise', 'focal')
3535

36+
- name: Remove old CernVM apt repository (legacy format)
37+
ansible.builtin.apt_repository:
38+
filename: cernvm.list
39+
repo: deb [allow-insecure=true] https://cvmrepo.web.cern.ch/cvmrepo/apt/ {{ ansible_distribution_release }}-prod main
40+
state: absent
41+
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release in ('jammy', 'noble')
42+
3643
- name: Configure CernVM apt repository for modern Ubuntu releases
3744
ansible.builtin.apt_repository:
3845
filename: cernvm

0 commit comments

Comments
 (0)