Hi,

I have never used two source repository for Ansible config.
But with One source repository we keep a vars file with all the required 
variables.
Example: vars/project/staging/project.yml 
vars/project/production/project.yml

and then have two separate playbooks at the root of the ansible project 
like project-staging.yml and project-production.yml.
That way you keep the variables and settings separated between projects and 
load the required vars files on each one.

Kind regards,
David Negreira.


On Monday, February 15, 2016 at 2:14:23 PM UTC+1, Byron Mabbett wrote:
>
> HI All,
> First post and we are looking to implement Ansible into a new cloud 
> environment for multiple legacy systems.
>
> Sorry but there is a bit of a story first and this is more a 
> setup/component architecture question as we have a security constraint that 
> production and non-production data centers can never talk to each other. 
> Meaning components such as version control and configuration management 
> have to have two instances (prod and non-prod) with separate login's etc 
> and syncing taking place between them. 
>
> I think this is mad, and have managed to talk them down to have only one 
> version control instance.
>
> However, compromise was a prod and non prod Ansible, which we can sort of 
> justify, as we have a lack of maturity with tools as we are just starting 
> to implement Ansible.
>
> Do others have experience in running two instances of Ansible, and keeping 
> common config in sync?
>
> eg:
> 1. One source repository for Ansible config containing both prod and 
> non-prod config
> 2. Two source repository's for Ansible config, one prod and one non-prod 
> config
>
> Any steer's appreciated.
>
> Cheers
> Byron
>

-- 
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/c4516a33-ed08-4dc5-bf94-ef7a31dca5b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to