nagios: fix up aws group template
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
0b64eb34bf
commit
4fe85007f0
1 changed files with 1 additions and 8 deletions
|
@ -1,12 +1,6 @@
|
|||
{% for host in groups['ec2']|sort %}
|
||||
{% if hostvars[host].nagios_Check_Services['ping'] %}
|
||||
define host {
|
||||
{% if vars['nagios_location'] == 'internal' %}
|
||||
use aws
|
||||
{% else %}
|
||||
use aws
|
||||
{% endif %}
|
||||
|
||||
use aws
|
||||
host_name {{ host }}
|
||||
{% if hostvars[host].ansible_hostname is defined %}
|
||||
alias {{ hostvars[host].ansible_hostname }}
|
||||
|
@ -15,5 +9,4 @@ define host {
|
|||
{% endif %}
|
||||
address {{ host }}
|
||||
}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue