make an iad2-internal hosts for our systems

This commit is contained in:
Stephen Smoogen 2020-06-09 11:19:01 -04:00
parent df38d67d44
commit cd97509505
2 changed files with 44 additions and 0 deletions

View file

@ -426,6 +426,18 @@
- nagios_hosts
notify: restart nagios
## These are only available to the internal server
- name: Build out nagios host templates (production)
template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
with_items:
- iad2-hosts.cfg
when: env == "production" and nagios_location == 'iad2_internal'
tags:
- nagios_server
- nagios_config
- nagios_hosts
notify: restart nagios
- name: Build out nagios host templates (production)
template: src=nagios/hosts/{{item}}.j2 dest=/etc/nagios/hosts/{{item}} mode=0644 owner=root group=root
with_items: