From 7b70dde99cbf436fb36222ff358988258ce95ea9 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk> Date: Tue, 15 May 2018 20:25:16 +0000 Subject: [PATCH] Use Ansible 2.5 compatible version of connection plugin Change-Id: I7cfc26f56de85b05487648f09ef5d6d01ec9345d --- elk_metrics_6x/bootstrap-embedded-ansible.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/elk_metrics_6x/bootstrap-embedded-ansible.sh b/elk_metrics_6x/bootstrap-embedded-ansible.sh index 10b2f079..01394744 100644 --- a/elk_metrics_6x/bootstrap-embedded-ansible.sh +++ b/elk_metrics_6x/bootstrap-embedded-ansible.sh @@ -37,6 +37,11 @@ if [[ ! -d "${ANSIBLE_EMBED_HOME}/repositories/ansible-config_template" ]]; then git clone https://git.openstack.org/openstack/ansible-config_template "${ANSIBLE_EMBED_HOME}/repositories/ansible-config_template" fi +if [[ ! -d "${ANSIBLE_EMBED_HOME}/repositories/openstack_ansible_plugins" ]]; then + mkdir -p "${ANSIBLE_EMBED_HOME}/repositories" + git clone https://git.openstack.org/openstack/openstack-ansible-plugins "${ANSIBLE_EMBED_HOME}/repositories/openstack-ansible-plugins" +fi + if [[ ! -d "${ANSIBLE_EMBED_HOME}/repositories/roles/systemd_service" ]]; then mkdir -p "${ANSIBLE_EMBED_HOME}/repositories" git clone https://git.openstack.org/openstack/ansible-role-systemd_service "${ANSIBLE_EMBED_HOME}/repositories/roles/systemd_service" @@ -68,11 +73,15 @@ echo "env ANSIBLE_HOST_KEY_CHECKING set" export ANSIBLE_ROLES_PATH="${ANSIBLE_EMBED_HOME}/repositories/roles" OPTS+=('ANSIBLE_ROLES_PATH') -echo "env ANSIBLE_ACTION_PLUGINS set" +echo "env ANSIBLE_ROLES_PATH set" export ANSIBLE_ACTION_PLUGINS="${ANSIBLE_EMBED_HOME}/repositories/ansible-config_template/action" OPTS+=('ANSIBLE_ACTION_PLUGINS') -echo "env ANSIBLE_ROLES_PATH set" +echo "env ANSIBLE_ACTION_PLUGINS set" + +export ANSIBLE_CONNECTION_PLUGINS="${ANSIBLE_EMBED_HOME}/repositories/openstack-ansible-plugins/connection/" +OPTS+=('ANSIBLE_CONNECTION_PLUGINS') +echo "env ANSIBLE_CONNECTION_PLUGINS set" source ${ANSIBLE_EMBED_HOME}/bin/activate echo "Embedded Ansible has been activated. Run 'deactivate' to leave the embedded environment".