Still struggling with this issue Any lead will be appreciated Thanks
On Thursday, April 21, 2016 at 10:27:54 AM UTC+3, Tzach Livyatan wrote: > > 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/439d2f43-95c7-49a4-8c0a-8c7ca006c611%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.