Skip to content

Instantly share code, notes, and snippets.

@zmarcantel
Created January 8, 2014 23:19
Show Gist options
  • Save zmarcantel/8326599 to your computer and use it in GitHub Desktop.
Save zmarcantel/8326599 to your computer and use it in GitHub Desktop.
---
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