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:
Julien Palard 2023-02-13 00:04:09 +01:00
parent b72753ded9
commit 308b6c2844
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 15 additions and 0 deletions

View File

@ -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'