Compare commits
2 Commits
e8a69aaaa1
...
1952f72c89
Author | SHA1 | Date | |
---|---|---|---|
1952f72c89 | |||
5b12eb5af2 |
12
playbooks/cleanup.yml
Executable file
12
playbooks/cleanup.yml
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env ansible-playbook
|
||||
# vim:ft=ansible:
|
||||
---
|
||||
# Preambulatory system configuration
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: collect service facts
|
||||
service_facts:
|
||||
tags: [ always ]
|
||||
- name: touch ansible timestamp file
|
||||
file: path=/var/lib/ansible-last-run state=touch mode='0644'
|
||||
changed_when: no
|
@ -37,6 +37,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: DNS Resolution
|
||||
command: check_by_ssh!/usr/lib/nagios/plugins/check_etc_resolv
|
||||
- name: Last Ansible Play
|
||||
command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_file_age /var/lib/ansible-last-run -w 90000 -c 100000
|
||||
- name: Memory Usage
|
||||
command: check_by_ssh!/usr/lib/nagios/plugins/check_memory -w 20% -c 10%
|
||||
- name: Package Updates
|
||||
|
Loading…
Reference in New Issue
Block a user