>
>
> When I run ansible in one-liner mode:
>
> ansible webserver --list-hosts; ansible webserver -m ping
>
> How am I able to pass the "webserver" argument to the inventory script?
>
> I am not understanding from the documentation and examples of how the 
> execution flow works with ansible and inventory scripts. 
>
> The documentation seems to indicate that the inventory needs to dump ALL 
> hosts and groups, and then to create a dictionary grouping the host --> 
> group, and then dumps the group and hosts.  When running:
>
> ./my_custom_inventory --list
>
> there is no grouping passed to identify which servers should be stored 
> together.  I apologize for the confusing post, but I am just trying to 
> understand how I should pass arguments to my custom api calls and return 
> back something that ansible will understand.  The closest I am able to 
> getting something similar to what I want is from the ec2 inventory example. 
>  Using the region to help dictate what list to pass into the call to gather 
> the list of hosts.
>

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

Reply via email to