You don't have to put your production and development environment files in
different directories, just give them different names.


On Fri, Jan 24, 2014 at 8:58 AM, Edd Grant <[email protected]> wrote:

> Thanks Brian, I'm not sure I quite follow. Are you saying that I should be
> splitting my vars files up per-inventory? e.g.
>
> production/
>   production.ini
>   host_vars/
>   group_vars/
>     webservers.yml
>     all.yml
>
> development/
>   production.ini
>   host_vars/
>   group_vars/
>     webservers.yml
>     all.yml
>
> If I do this then won't I have to duplicate my group_vars files across
> each inventory folder? Is that considered Idiomatic usage? I'm asking as
> I've tried to follow the best 
> practices<http://docs.ansible.com/playbooks_best_practices.html#how-to-arrange-inventory-stage-vs-production>page
>  for layout and I haven't noticed a layout that resembles your
> suggestion.
>
> Cheers.
>
> On Friday, January 24, 2014 1:42:06 PM UTC, Brian Coca wrote:
>>
>> that is just an organizational issue host_vars and group_vars are
>> relative to current inventory,
>>
>> inventory1/
>>   hosts
>>    group_vars/all
>>
>> inventory2/
>>   hosts
>>   group_vars/all
>>
>  --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Michael DeHaan <[email protected]>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

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

Reply via email to