From ef806bc74117428e3a41ac79147dc43120d55871 Mon Sep 17 00:00:00 2001 From: Adrien Cunin Date: Wed, 14 Oct 2020 18:21:16 +0200 Subject: [PATCH] Actually use ANSIBLE_FORKS in openstack-ansible.rc Change-Id: Id7b820125ce9862059ee00da0c97bc8619fcaaf3 --- scripts/bootstrap-ansible.sh | 1 + scripts/openstack-ansible.rc | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/bootstrap-ansible.sh b/scripts/bootstrap-ansible.sh index d573329119..2fa9f06fac 100755 --- a/scripts/bootstrap-ansible.sh +++ b/scripts/bootstrap-ansible.sh @@ -154,6 +154,7 @@ popd sed "s|OSA_INVENTORY_PATH|${OSA_INVENTORY_PATH}|g" scripts/openstack-ansible.rc > /usr/local/bin/openstack-ansible.rc sed -i "s|OSA_PLAYBOOK_PATH|${OSA_PLAYBOOK_PATH}|g" /usr/local/bin/openstack-ansible.rc sed -i "s|OSA_ANSIBLE_PYTHON_INTERPRETER|${OSA_ANSIBLE_PYTHON_INTERPRETER}|g" /usr/local/bin/openstack-ansible.rc +sed -i "s|OSA_ANSIBLE_FORKS|${ANSIBLE_FORKS}|g" /usr/local/bin/openstack-ansible.rc # Create openstack ansible wrapper tool cp -v ${OSA_WRAPPER_BIN} /usr/local/bin/openstack-ansible diff --git a/scripts/openstack-ansible.rc b/scripts/openstack-ansible.rc index 7bde8513b4..825e97b8b0 100644 --- a/scripts/openstack-ansible.rc +++ b/scripts/openstack-ansible.rc @@ -53,6 +53,7 @@ export ANSIBLE_TRANSPORT="${ANSIBLE_TRANSPORT:-ssh}" export ANSIBLE_SSH_PIPELINING="${ANSIBLE_SSH_PIPELINING:-True}" export ANSIBLE_SSH_RETRIES="${ANSIBLE_SSH_RETRIES:-5}" export ANSIBLE_PIPELINING="${ANSIBLE_SSH_PIPELINING}" +export ANSIBLE_FORKS="${ANSIBLE_FORKS:-OSA_ANSIBLE_FORKS}" export ANSIBLE_STRATEGY_PLUGINS="${ANSIBLE_STRATEGY_PLUGINS:-/etc/ansible/roles/plugins/strategy}" export ANSIBLE_CONNECTION_PLUGINS="${ANSIBLE_CONNECTION_PLUGINS:-/etc/ansible/roles/plugins/connection}"