From ac35ca3b2b102e7597ba56da0362cd6887cf4680 Mon Sep 17 00:00:00 2001 From: Logan V Date: Sun, 17 Mar 2019 14:33:06 -0500 Subject: [PATCH] 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 --- bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh b/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh index e3dd74c1..39c4c97e 100755 --- a/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh +++ b/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh @@ -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"