fix jinja2 syntax. really I know how to code
This commit is contained in:
parent
fa91e4d065
commit
0b6f47fe3d
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
define hostgroup{
|
||||
hostgroup_name {{ key }}
|
||||
alias {{ key }}
|
||||
members {% for host in groups[key]|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, %{endif}{% endfor %}
|
||||
members {% for host in groups[key]|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, {% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue