Hi,

I think it's down to your work split/structure. In our case each project
operates on separate set of hosts. So we have separate inventories for each
of them. Perhaps there's some sort of logical grouping structure you could
create for your hosts and run playbooks based on those groups (with a
single big shared inventory).

kind regards
Pshem


On Mon, 4 Sep 2017 at 09:48 <[email protected]> wrote:

> So after converting my structure to the "each project has its own
> ansible.cfg and inventory" the worst issue I don't appear to be able to
> solve is targeting hosts in different projects. If I need to run an ad hoc
> command on all hosts, I literally have to enter each project directory and
> run the command. I could script around it somehow or maybe there's some
> clever shell expansion I could use, but it feels like going against what
> Ansible is good at: running against multiple hosts automatically.
>
> As most of my projects only have a single host each, it's not very useful
> at this stage. Sure, if I need to scale the project I may need a few new
> hosts but right now it feels like each project should be a group in one big
> project.
>
> --
> 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/bc95ba9e-1f9b-46d9-bf22-9aa876970bd6%40googlegroups.com
> .
> 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/CAEaZiRUo%3DpFfndpXXD-mXdKo9HvW%3DGbuJNtaYG76%3Ddhj2HU7Fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to