I think the hosts would get merged into a single group called web, so that 
in itself might not be a problem.  
Where you might fall down is if you have different group var settings for 
hosts belonging to the same group names.

If that's the case you might be able to move things around a little or 
perhaps have a different group_vars file in the dir that just contains 
common settings across your hosts.



On Monday, September 4, 2017 at 2:17:09 PM UTC+1, jamiepau...@gmail.com 
wrote:
>
> Yeah, I think I'd need to create symlinks to all the group_vars too. 
> Actually, I'm not too sure how it could work because each inventory file 
> looks like this:
>
> [web]
> somehost
>
> [web]
> some_other_host
>
> On Monday, 4 September 2017 14:00:34 UTC+1, J Hawkesworth wrote:
>>
>> You could just keep your individual inventories for each client but then 
>> use a directory containing symlinks to all the client inventory files.
>>
>> I use this trick as I have 2 environments that run inside the same 
>> physical datacenter.  Mostly I want to make changes to just one environment 
>> at a time, but for stuff like patching it makes sense to hit all the hosts 
>> in the datacenter.
>>
>> Only slight downside is if you use group_vars then you have to symlink to 
>> the group_vars as well.
>>
>> Jon
>>
>>
>> On Sunday, September 3, 2017 at 11:40:30 PM UTC+1, jamiepau...@gmail.com 
>> wrote:
>>>
>>> They are at the moment at least webservers each hosting a project or 
>>> group of projects relating to a particular client. It makes resource 
>>> allocation and billing easier. It affords us the facility to throw hardware 
>>> resources or scale up a client's needs. But although each server is 
>>> essentially a LAMP stack, some use different software or have different 
>>> requirements and would need a playbook of their own.
>>>
>>> Managing all projects, their webservers, future additional servers and 
>>> DB servers etc, plus prod/staging/testing versions in one inventory isn't 
>>> ideal either.
>>>
>>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8cf362f3-aab7-4f5a-8905-23ecf46debfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to