Have you instead looked at the ec2.py inventory script?

This would negate the need for manipulating a static file. And would really
be the recommended way of handling this.

However I imagine you might be able to use the ini_file module with
local_action to manipulate a local inventory file.

On Friday, December 20, 2013, Yves Dorfsman wrote:

>
> Is there a way to change the inventory hosts file (on disk) from the ec2
> module, when it launching new instances?
>
> Thanks.
>
> --
> Yves.
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>


-- 
Matt Martz
[email protected]
http://sivel.net/

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to