and we needed to add it here

This commit is contained in:
Stephen Smoogen 2017-12-01 01:52:14 +00:00
parent 36cfe3a769
commit cecac4ee45

View file

@ -8,7 +8,7 @@
define hostgroup{
hostgroup_name {{ key }}
alias {{ key }}
members {% for host in groups[key] %}{{host}}, {% endfor %}
members {% for host in groups[key] %}{% if hostvars[host].nagios_Check_Services['ping'] == true %}{{host}}{% endif %}, {% endfor %}
}
{% endif %}