This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for host in groups['gluster_servers'] %} | |
{% if host != inventory_hostname %} | |
{% if 'ansible_' + rhel7_interface in hostvars[host] %} | |
- {{ hostvars[host]['ansible_' + rhel7_interface]['ipv4']['address'] }} | |
{% else %} | |
- {{ hostvars[host]['ansible_' + default_interface]['ipv4']['address'] }} | |
{% endif %} | |
{% endif %} | |
{% endfor %} |