Try to use:

ansible-playbook -i inventories

because Ansible can use directories.
You also can use symlinks for more complicated cases.

On Saturday, February 13, 2016 at 10:52:08 AM UTC+5, Nico K. wrote:
>
> Hi,
>
> When one has multiple inventories like:
>
> inventories/a/hosts
> inventories/b/hosts
> inventories/..
>
> Is there an easy way to run a task or playbook against all of them without 
> explicitly having to define each inventory on the command-line?
>
> The use case here is that all those groups contain machines for different 
> departments or even sub-companies, however they all share certain 
> SSL-certificates that I would like to be able to deploy to all hosts at 
> once.
>
> Thanks,
> Nico.
>

-- 
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/24f6b45a-23c5-41ee-8676-c0a58271cc1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to