debug step 02

This commit is contained in:
Stephen Smoogen 2017-01-10 17:44:33 +00:00
parent 4ad26ed735
commit bbe354f7fe

View file

@ -9,7 +9,7 @@
define hostgroup{
hostgroup_name {{ key }}
alias {{ key }}
members {% for host in groups[key] %}{% if hostvars[host].env == 'staging' %}{{host}}, {% endif %}{% endfor %}
members {% for host in groups[key] %}{% if (hostvars[host].env is defined) and (hostvars[host].env == 'staging') %} {{host}}, {% endif %} {% endfor %}
}