I recommend keeping your inventory in a directory, like inventory/

and then have a inventory/production and a inventory/stage

This prevents accidentally running something against both as you'll have to
-i inventory/stage (unless you type -i inventory!)

Usage of group_vars is then the way to organize variance between them.

See
http://docs.ansible.com/playbooks_best_practices.html#how-to-arrange-inventory-stage-vs-production


On Fri, Aug 15, 2014 at 1:10 PM, olga <[email protected]> wrote:

> Hi !
>
> I currently using python tools for continuous deloy to AWS ec2 nodes and
> want to use ansible for continuous deploy. We have stage and qa env with
> different properties. Could someone point to me the right approach to setup
> continuous deploy to mulitple env with the right properties.
>
> Thanks,
> Olga S
>
> --
> 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/d42530f6-a77d-4a13-9506-b4948efeb003%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/d42530f6-a77d-4a13-9506-b4948efeb003%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CA%2BnsWgzcBb0%2B7vch4n-Li28Sx-cOOS8P9La7DW1nzp34f3WTkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to