
For Newton onwards, when both ansible and ansible-playbook commands are run the /usr/local/bin/openstack-ansible.rc file needs to be sourced before executing the commands. It's very often the case that we get reports that commands have failed because deployers are trying to use 'ansible-playbook' instead of 'openstack-ansible'. This patch ensures that both these commands execute using the openstack-ansible wrapper to ensure that the rc file is sourced appropriately and that /etc/openstack_deploy/user*.yml are included as extra vars under the right circumstances. The wrapper only implements the sourced config and extra vars if the ansible/ansible-playbook commands are executed from the git clone root directory. This protection has been added in order to ensure that non-OSA execution is not interfered with. As learned and applied in https://review.openstack.org/385511 the order of parameters is changed to ensure that the playbook is before all other parameters. Change-Id: I6706dcca6046addb57733b53bc1610644bcbb2d1 Closes-Bug: #1633411
OpenStack-Ansible
OpenStack-Ansible is an official OpenStack project which aims to deploy production environments from source in a way that makes it scalable while also being simple to operate, upgrade, and grow.
For an overview of the mission, repositories and related Wiki home page, please see the formal Home Page for the project.
For those looking to test OpenStack-Ansible using an All-In-One (AIO) build, please see the Quick Start guide.
For more detailed Installation and Operator documentation, please see the Install Guide.
If OpenStack-Ansible is missing something you'd like to see included, then we encourage you to see the Developer Documentation for more details on how you can get involved.
Developers wishing to work on the OpenStack-Ansible project should always base their work on the latest code, available from the master GIT repository at Source.
If you have some questions, or would like some assistance with
achieving your goals, then please feel free to reach out to us on the OpenStack Mailing Lists
(particularly openstack-operators or openstack-dev) or on IRC in
#openstack-ansible
on the freenode network.