Update freshness checks

This commit is contained in:
Joshua Boniface 2022-05-17 16:25:52 -04:00
parent 8f28decfe2
commit 1a7969b707
2 changed files with 4 additions and 9 deletions

View File

@ -48,18 +48,12 @@
state: "absent"
force: "yes"
- name: check library freshness
command: /usr/lib/check_mk_agent/plugins/freshness
- name: check freshness
command: /usr/sbin/needrestart -p
register: freshness
changed_when: freshness.rc == 1
failed_when: false
- name: check kernel version
command: /usr/lib/check_mk_agent/plugins/kernelversion
register: kernelversion
changed_when: kernelversion.rc == 1
failed_when: false
- name: restart system cleanly
block:
- name: secondary node
@ -204,7 +198,7 @@
- name: reset any systemd failures
command: systemctl reset-failed
when: freshness.changed or kernelversion.changed
when: freshness.changed
- name: wait 30 seconds for system to stabilize
pause:

View File

@ -238,6 +238,7 @@
- sysstat
- binutils
- deborphan
- needrestart
- wget
- curl
- gawk