Skip to content

Commit

Permalink
Merge pull request #35 from adfinis/fix/debian/remove_old_repo
Browse files Browse the repository at this point in the history
fix(debian): remove old apt repository syntax without signed-by
  • Loading branch information
Daenou authored Oct 3, 2024
2 parents a0c955d + b5349de commit 42ebc64
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@
state: present
when: ansible_os_family == 'Debian'

- name: Remove old icinga apt repository without key
ansible.builtin.apt_repository:
repo: "deb http://packages.icinga.com/{{ ansible_distribution | lower }} icinga-{{ ansible_distribution_release }} main"
state: absent
when:
- ansible_os_family == 'Debian'
- (ansible_lsb.id != 'Univention' or ansible_distribution_release != 'stretch')
notify: Update package repository

- name: Configure icinga apt repository
ansible.builtin.apt_repository:
repo: "{{ icinga2_agent_apt.repo }}"
Expand Down

0 comments on commit 42ebc64

Please sign in to comment.