Hi
I have a working play book in Ansible 1.9
As part of it, I'm defining extra groups in file inventories/ec2/hosts, for
example:
[us-west-2]
[us_west_2:children]
us-west-2
In Ansible 1.9, I used this group as follow:
1. run the playbook with -i inventories/ec2/ prefix
2. use the group as follow:
- debug: msg="{{ hostvars[item].ec2_private_ip_address }}"
with_items: groups.us_west_2
ec2.py did not change, and still return
...
"us-west-2": [
"54.213.157.131",
"54.191.215.128",
"54.186.93.200",
"54.186.40.39"
],
...
Look like Ansible 2 does not use the groups defined in
inventories/ec2/hosts.
Is it bug or a feature?
any idea how to bypass this issue?
Thanks
Tzach
--
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/6e4b596b-0a42-47c3-83c7-44342b551fb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.