forked from AFPy/infra
munin-node apt_all update yields errors.
Like:
E: The value 'bookworm-backports' is invalid for APT::Default-Release as such a release is not available in the sources
E: The value 'bookworm-security' is invalid for APT::Default-Release as such a release is not available in the sources
E: The value 'bookworm-updates' is invalid for APT::Default-Release as
such a release is not available in the sources
But anyway « The plugin does not support this anymore. » : bc6450d8eb
This commit is contained in:
parent
b72753ded9
commit
308b6c2844
|
@ -41,3 +41,18 @@
|
|||
host *
|
||||
port 4949
|
||||
notify: munin
|
||||
|
||||
- name: Setup apt_all plugin
|
||||
file:
|
||||
src: /usr/share/munin/plugins/apt_all
|
||||
dest: /etc/munin/plugins/apt_all
|
||||
state: link
|
||||
|
||||
- name: Remove native munin apt update
|
||||
# It is no longer supported
|
||||
# and raises errors.
|
||||
# The doc tells to use APT::Periodic::Update-Package-Lists "1"; instead.
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/cron.d/munin-node
|
||||
state: absent
|
||||
regexp: '/etc/munin/plugins/apt_all update'
|
||||
|
|
Loading…
Reference in New Issue