Julien Palard 2023-03-28 14:27:42 +02:00
parent c0793b34a4
commit 75b5e7e2e9
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@
dest: /etc/munin/plugins/apt_all
state: link
notify: munin
when: ansible_facts['distribution'] == "Debian"
when: ansible_facts["distribution"] == "Debian" and ansible_facts["distribution_release"] == "bullseye"
- name: Remove native munin apt update
# It does not work on Ubuntu, it's giving:
@ -56,7 +56,7 @@
# E: The value 'testing' is invalid for APT::Default-Release as such a release is not available in the sources
# E: The value 'unstable' is invalid for APT::Default-Release as such a release is not available in the sources
file:
path: /usr/share/munin/plugins/apt_all
path: /etc/munin/plugins/apt_all
state: absent
notify: munin
when: ansible_facts['distribution'] == "Ubuntu"
when: not(ansible_facts["distribution"] == "Debian" and ansible_facts["distribution_release"] == "bullseye")