and we need to make that a template versus a command
This commit is contained in:
parent
945a676b15
commit
f912085403
2 changed files with 28 additions and 0 deletions
|
@ -119,6 +119,27 @@
|
|||
## Copy over the command scripts
|
||||
- name: Copy /etc/nagios/commands
|
||||
synchronize: src=nagios/commands/ dest=/etc/nagios/commands/
|
||||
copy: src=nagios/commands/{{ item }} dest=/etc/nagios/commands/{{ item }}
|
||||
with_items:
|
||||
- bzr.cfg
|
||||
- disk.cfg
|
||||
- dns.cfg
|
||||
- git.cfg
|
||||
- httpd.cfg
|
||||
- koji.cfg
|
||||
- local.cfg
|
||||
- misc.cfg
|
||||
- notify.cfg
|
||||
- nrpe.cfg
|
||||
- perfdata.cfg
|
||||
- ping.cfg
|
||||
- rsyslog.cfg
|
||||
- smtp.cfg
|
||||
- ssh.cfg
|
||||
- tcp.cfg
|
||||
- testcloud.cfg
|
||||
- udp.cfg
|
||||
- unbound.cfg
|
||||
tags:
|
||||
- nagios-config
|
||||
- nagios_server
|
||||
|
@ -241,6 +262,13 @@
|
|||
tags:
|
||||
- nagios_server
|
||||
|
||||
- name: Template over commands
|
||||
template: src=nagios/templates/{{item}}.j2 dest=/etc/nagios/commands/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- postgres.cfg
|
||||
tags:
|
||||
- nagios_server
|
||||
|
||||
- name: Template over services
|
||||
template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue