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:
1 changed files with 4 additions and 0 deletions
@@ -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"
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.