It would look like this, simply using the add host module to create a new
group based on that pattern.
- hosts: tag_Name_basebox_myteksi_net:&tag_Provisioned_False
tasks:
- add_host: key=my_new_dynamic_group_alias
Note that this would only happen in memory, to do other things, you might
wish to use the ec2_tag module to assign new tags as well.
Hope this helps and let me know if there are any questions!
On Sat, Dec 13, 2014 at 4:39 AM, Navid Paya <[email protected]> wrote:
>
> Hi all
> I have come up with a search on AWS inventory. What I want to do is add
> the resulted instances to using add_host. This is how use ec2.py to find
> the instances:
>
> ec2.py 'tag_Name_basebox_myteksi_net:&tag_Provisioned_False'
>
> What would the task for this look like?
>
> --
> 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/3d24cd67-5027-407b-a3f5-633869e710ab%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/3d24cd67-5027-407b-a3f5-633869e710ab%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CA%2BnsWgzzaMXPcLyy4Jh3itQ8CCSSRo-VqHrpdAc%2B6xufKjb97w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.