On Wednesday, July 11, 2012 at 4:26 PM, Dag Wieers wrote:
On Wed, 11 Jul 2012, Michael DeHaan wrote:One thing I should also add is that for users with clear differencesbetween environments (stage, production, QA, etc) -- it is easy tomaintain multiple inventory files.This prevents addressing production when you want to talk to stage.ansible -i /etc/ansible/stage_hosts /path/to/playbooks/some_playbook_affecting_stage.ymlIn other words, I would not want to keep all my application servers forQA defined with my production ones in the same file, and it's notrequired that you do.But how would one reuse the same definitions for the groups ? A webserverin production should have the same variables as a webserver in QA. Buthaving different hosts files for each would require one to duplicate thosedefinitions. Or I miss something :)