Use cluster_group variable for paths
Instead of trying to automagic this group out of the Ansible hostvars, just make it explicitly defined in the group_vars to avoid any confusion.
This commit is contained in:
@ -16,7 +16,7 @@ server time.nrc.ca iburst
|
||||
server time.chu.nrc.ca iburst
|
||||
|
||||
# Local PVC cluster
|
||||
{% for host in groups[hostvars[inventory_hostname].group_names[0]] %}
|
||||
{% for host in groups[cluster_group] %}
|
||||
server {{ host }} iburst
|
||||
{% endfor %}
|
||||
|
||||
|
Reference in New Issue
Block a user