As a developer working on two projects at once, both using Ansible, is there a well worn path for how to keep the two sets of Ansible configuration separate but easy to switch between?
Thanks,
Mike
As a developer working on two projects at once, both using Ansible, is there a well worn path for how to keep the two sets of Ansible configuration separate but easy to switch between?
Thanks,
Mike
Keep your ansible.cfg in the root of the project containing your playbooks. Ansible commands will look for the config file in the current directory first. I've been doing this for over a year with no issues.
pacem in terris / мир / शान्ति / سَلاَم / 平和
Kevin R. Bullock
the configs also have a env var equivalent, so having 2 files which
you can source also works to easily switch environments.