openstack-ansible-ops/bootstrap-embedded-ansible
Logan V ac35ca3b2b Fix plugins loading in embedded ansible
The connection plugin is being loaded, but the strategy plugin is not.
This breaks lookups for containers, so the physical host SSH connection
IP cannot be detected properly and attempts to hit the inventory_hostname
for physical_host SSH instead of the calculated ansible_host passed
from the strategy plugin.

Change-Id: Iff60a57a50d9257a09ce7ec2e6aa27e0e01664cd
2019-03-17 14:33:06 -05:00
..
ansible-requirements.yml Update the embedded-ansible-setup process to be configurable 2019-01-04 11:46:19 -06:00
bootstrap-embedded-ansible.sh Fix plugins loading in embedded ansible 2019-03-17 14:33:06 -05:00
embedded-ansible-setup.yml Update the embedded-ansible-setup process to be configurable 2019-01-04 11:46:19 -06:00
osa-inventory.sh Update the embedded-ansible-setup process to be configurable 2019-01-04 11:46:19 -06:00
python-requirements.txt Update the embedded-ansible-setup process to be configurable 2019-01-04 11:46:19 -06:00
README.rst Update the embedded-ansible-setup process to be configurable 2019-01-04 11:46:19 -06:00

Create an embedded Ansible runtime

tags

embedded, ansible

About this repository

The embedded ansible script will create an ansible runtime within the users home folder. This ansible runtime will be within a virtual envrionment and have all of the plugins required to run ansible standalone or in an OpenStack-Ansible compatible envrionment.

Usage

source bootstrap-embedded-ansible.sh

With the script sourced, the ansible environment will create a virtual environment at ${HOME}/ansible_venv if it does not already exist.

To leave the embedded ansible environment run the function deactivate.

Options

All options are passed in using environment variables.

ANSIBLE_VERSION:

Allows for the Ansible XXX to be overridden. When set the full ansible version is required.

ANSIBLE_EMBED_HOME:

Allows for the Ansible XXX to be overridden. When set the full path is required.

ANSIBLE_ROLE_REQUIREMENTS:

Allows for the Ansible XXX to be overridden. When set the full path to the role requirements file is required.

ANSIBLE_PYTHON_REQUIREMENTS:

Allows for the Ansible XXX to be overridden. When set the full path to the python requirements file is required.