Created
January 8, 2014 23:19
-
-
Save zmarcantel/8326599 to your computer and use it in GitHub Desktop.
This file contains 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
--- | |
app: | |
etcd_hosts: > | |
{% for host in groups.divvy %} | |
{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }} | |
{%- if not loop.last -%} | |
, | |
{%- endif -%} | |
{% endfor %} | |
Error: | |
{'msg': "One or more undefined variables: 'dict object' has no attribute 'ansible_eht0'", 'failed': True} | |
I've also tried: | |
ansible_all_ipv4_addresses | |
['instance']['private_ip_address'] | |
and a couple others.... | |
Is this related to the hostvars now being defined in '_meta'? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment