diff --git a/files/check-mk/mk_apt_hook b/files/check-mk/mk_apt_hook new file mode 100644 index 0000000..63a630c --- /dev/null +++ b/files/check-mk/mk_apt_hook @@ -0,0 +1,9 @@ +# HEADER: managed by ansible, do NOT edit manually! +# retrigger mk-apt +# +# If you want use this hook, copy this file to: +# /etc/apt/apt.conf.d/98mk-apt. +# +# For further details please consult the check manual page of apt. + +DPkg::Post-Invoke {"test -d /var/lib/check_mk_agent/cache && touch -t 197012181200 /var/lib/check_mk_agent/cache/*mk_apt.cache"; }; diff --git a/tasks/checkmk-plugins.yml b/tasks/checkmk-plugins.yml index 53a99a2..73357f0 100644 --- a/tasks/checkmk-plugins.yml +++ b/tasks/checkmk-plugins.yml @@ -63,6 +63,14 @@ group: 'root' mode: 0755 +- name: Deploy mk_apt_hook for usage with checkmk agent plugin mk_apt + copy: + src: 'check-mk/mk_apt_hook' + dest: '/etc/apt/apt.conf.d/98mk-apt' + mode: 0644 + owner: root + group: root + ### checkmk agent plugins - name: "Deploy checkmk agent plugins"