I use a "local" inventory file with a single line for this:

127.0.0.1


Regards,
-scott

On Monday, May 19, 2014 10:28:34 PM UTC-4, Roger Qiu wrote:
>
> Sometimes I just want to contact a random host (this host's IP is 
> ephemeral/discovered during the operation), and execute an adhoc module.
>
> Is there a way to do this?
>
> It seems Ansible always requires an inventory file, but editing the 
> inventory file just to do an adhoc command on a host address that won't 
> exist afterwards is a bit unnecessary.
>

-- 
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/f44bed30-e54a-4423-ba92-b909de06f039%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to