Compare commits

...

2 Commits

Author SHA1 Message Date
92f26b7a0c Add check for atd 2021-09-07 14:55:00 -05:00
60454b6331 Disable motd-news 2021-09-07 14:54:54 -05:00
2 changed files with 7 additions and 0 deletions

View File

@ -28,6 +28,8 @@
command: check_by_ssh!/usr/lib/nagios/plugins/check_disk -M -u GB -X nfs -X tracefs -X cgroup -X tmpfs -X overlay -X shm -w 15% -c 10% -W 15% -K 10% -A -I '^/run/' -I '^udev$' -I '^/var/lib/kubelet/'
- name: Reboot Required
command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_reboot_required
- name: Unit atd.service
command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_systemd_unit atd.service
- name: Unit backup.service
command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_systemd_unit backup.service
- name: Unit backup.timer

View File

@ -3,5 +3,10 @@
- name: remove default motd items
file: state=absent path=/etc/update-motd.d/{{ item }}
loop: "{{ motd_remove + motd_remove_extra }}"
- name: disable motd-news
systemd: name="{{ item }}" state=stopped enabled=no
with_items:
- motd-news.service
- motd-news.timer
- name: template out motd script
template: src=motd.sh dest=/etc/update-motd.d/50-ansible mode=0755