ok why am I expecting this to work?

This commit is contained in:
Stephen Smoogen 2017-06-19 17:37:00 +00:00
parent 2add5156dc
commit ffa6af14e0

View file

@ -1,13 +1,13 @@
define hostgroup {
hostgroup_name dnsservers
alias DNS Servers
members {% for host in groups["dns"] %} {{ host |replace(".phx2","") }} {% if !loop.last %}, {% endif %} {% endfor %}
members {% for host in groups["dns"] %} {{ hostvars[host]['inventory_hostname_short'] }}.fedoraproject.org {% if !loop.last %}, {% endif %} {% endfor %}
}
define hostgroup {
hostgroup_name proxies
alias Web Servers
members {% for host in groups["proxies"] %} {{ host |replace(".phx2","") }} {% if !loop.last %}, {% endif %} {% endfor %}
members {% for host in groups["proxies"] %} {{ hostvars[host]['inventory_hostname_short'] }}.fedoraproject.org {% if !loop.last %}, {% endif %} {% endfor %}
}