nagios: drop copr_external.cfg from services
This commit is contained in:
parent
d2f9b772e9
commit
6062eec80b
1 changed files with 11 additions and 0 deletions
|
@ -261,6 +261,17 @@
|
||||||
when: env == "production" and nagios_location == "external"
|
when: env == "production" and nagios_location == "external"
|
||||||
notify: restart nagios
|
notify: restart nagios
|
||||||
|
|
||||||
|
## Drop services we don't need
|
||||||
|
- name: Nuke unneded services from /etc/nagios/services (External)
|
||||||
|
file: dest=/etc/nagios/services/{{ item }} state=absent
|
||||||
|
with_items:
|
||||||
|
- copr_external.cfg
|
||||||
|
tags:
|
||||||
|
- nagios_config
|
||||||
|
- nagios_server
|
||||||
|
when: env == "production" and nagios_location == "external"
|
||||||
|
notify: restart nagios
|
||||||
|
|
||||||
## Copy over the servicegroups
|
## Copy over the servicegroups
|
||||||
- name: Copy /etc/nagios/servicegroups
|
- name: Copy /etc/nagios/servicegroups
|
||||||
synchronize: src=nagios/servicegroups/ dest=/etc/nagios/servicegroups/
|
synchronize: src=nagios/servicegroups/ dest=/etc/nagios/servicegroups/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue