try to sync up more changes for nagios

This commit is contained in:
Stephen Smoogen 2020-06-09 11:04:01 -04:00
parent 8ee3e4149d
commit c9bb09f93e

View file

@ -264,7 +264,7 @@
tags: tags:
- nagios_config - nagios_config
- nagios_server - nagios_server
when: nagios_location == 'phx2_internal' when: nagios_location == 'iad2_internal'
notify: restart nagios notify: restart nagios
## Copy over the servicegroups ## Copy over the servicegroups
@ -373,9 +373,8 @@
template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root
with_items: with_items:
- ipa.cfg - ipa.cfg
- phx2-mgmt.cfg
- mirrorlist-proxies.cfg - mirrorlist-proxies.cfg
when: env == "production" and nagios_location == 'phx2_internal' when: env == "production" and nagios_location == 'iad2_internal'
tags: tags:
- nagios_server - nagios_server
- nagios_config - nagios_config
@ -431,13 +430,14 @@
template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
with_items: with_items:
- phx2-external.cfg - phx2-external.cfg
- iad2-external.cfg
when: env == "production" and nagios_location == "external" when: env == "production" and nagios_location == "external"
tags: tags:
- nagios_server - nagios_server
- nagios_config - nagios_config
notify: restart nagios notify: restart nagios
- name: Build out nagios hostgroup templates (phx2) - name: Build out nagios hostgroup templates (iad2)
template: src=nagios/hostgroups/{{item}}.j2 dest=/etc/nagios/hostgroups/{{item}} mode=0644 owner=root group=root template: src=nagios/hostgroups/{{item}}.j2 dest=/etc/nagios/hostgroups/{{item}} mode=0644 owner=root group=root
with_items: with_items:
- all.cfg - all.cfg
@ -445,7 +445,7 @@
- nomail.cfg - nomail.cfg
- checkswap.cfg - checkswap.cfg
- checkraid.cfg - checkraid.cfg
when: nagios_location == 'phx2_internal' when: nagios_location == 'iad2_internal'
tags: tags:
- nagios_server - nagios_server
- nagios_config - nagios_config