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
This commit is contained in:
Logan V 2019-03-17 14:33:06 -05:00
parent 28cb67cf33
commit ac35ca3b2b
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ export ANSIBLE_CONNECTION_PLUGINS="${ANSIBLE_EMBED_HOME}/repositories/roles/plug
OPTS+=('ANSIBLE_CONNECTION_PLUGINS')
echo "env ANSIBLE_CONNECTION_PLUGINS set"
export ANSIBLE_STRATEGY_PLUGINS="${ANSIBLE_EMBED_HOME}/repositories/roles/plugins/strategy"
OPTS+=('ANSIBLE_STRATEGY_PLUGINS')
echo "env ANSIBLE_STRATEGY_PLUGINS set"
export ANSIBLE_TRANSPORT="${ANSIBLE_TRANSPORT:-ssh}"
OPTS+=('ANSIBLE_TRANSPORT')
echo "env ANSIBLE_TRANSPORT set"