>
> Trying to work out why this works:
>

TASK: [debug var=groups.security_group_app] 
***********************************
Friday 17 April 2015  12:15:01 +0100 (0:00:00.301)       0:00:13.586 
**********
ok: [52.17.198.95] => {
    "var": {
        "groups.security_group_app": [
            "52.xx.xx.xx",
            "52.xx.xx.xx"
        ]
    }
} 

But this doesn't:
{% for ec2_host_ip in groups.security_group_app %}
  {{ ec2_host_ip|pprint }}
{% endfor %}

fatal: [52.xx.xx.xx] => {'msg': "AnsibleUndefinedVariable: One or more 
undefined variables: ansible.runner.HostVars object has no element 
[u'52.xx.xx.xx', u'52.xx.xx.xx']", 'failed': True}

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20b19fe1-7b94-4bf4-8c7c-0f7ae89abdd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to