oh the comma needs to be in the endif or it blows up
This commit is contained in:
parent
cecac4ee45
commit
5980773461
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
define hostgroup{
|
||||
hostgroup_name {{ key }}
|
||||
alias {{ key }}
|
||||
members {% for host in groups[key] %}{% if hostvars[host].nagios_Check_Services['ping'] == true %}{{host}}{% endif %}, {% endfor %}
|
||||
members {% for host in groups[key] %}{% if hostvars[host].nagios_Check_Services['ping'] == true %}{{host}}, {% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue