43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
|
|
- file: path=/nagios state=directory
|
|
|
|
- unarchive:
|
|
src: files/nagios.tar.gz
|
|
dest: /nagios
|
|
|
|
- cron:
|
|
name: "check disk full"
|
|
minute: "00,10,20,30,40,50"
|
|
hour: "*"
|
|
job: "/nagios/cron/check_disk"
|
|
|
|
- cron:
|
|
name: "check disk ok"
|
|
minute: "00,10,20,30,40,50"
|
|
hour: "*"
|
|
job: "/nagios/cron/check_disks"
|
|
|
|
- cron:
|
|
name: "check firewall"
|
|
minute: "00,10,20,30,40,50"
|
|
hour: "*"
|
|
job: "/nagios/cron/check_iptables"
|
|
|
|
- replace:
|
|
path: /nagios/cron/check_iptables
|
|
regexp: 'HOSTNAME="cms-fa11.service.rug.nl"'
|
|
replace: 'HOSTNAME="{{ ansible_hostname }}.service.rug.nl"'
|
|
backup: yes
|
|
|
|
- replace:
|
|
path: /nagios/cron/check_disk
|
|
regexp: 'HOSTNAME="cms-fa11.service.rug.nl"'
|
|
replace: 'HOSTNAME="{{ ansible_hostname }}.service.rug.nl"'
|
|
backup: yes
|
|
|
|
- replace:
|
|
path: /nagios/cron/check_disks
|
|
regexp: 'HOSTNAME="cms-fa11.service.rug.nl"'
|
|
replace: 'HOSTNAME="{{ ansible_hostname }}.service.rug.nl"'
|
|
backup: yes
|