From dbffa6cfb6fb83285f7d6b9f38648a42cfe08de5 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Mon, 6 Apr 2020 13:37:01 +0000 Subject: [PATCH] Ansible: Speed up by pipelining Signed-off-by: Peter Mikus Change-Id: I3ad5675cda017b3dcf8cba88d56d5d6c11184e20 --- resources/libraries/bash/function/ansible.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/libraries/bash/function/ansible.sh b/resources/libraries/bash/function/ansible.sh index 56665dfa1c..1263412dd5 100644 --- a/resources/libraries/bash/function/ansible.sh +++ b/resources/libraries/bash/function/ansible.sh @@ -34,7 +34,9 @@ function ansible_adhoc () { die "Failed to read hosts from working topology!" } pushd "${TOOLS_DIR}"/testbed-setup/ansible || die "Pushd failed!" - ANSIBLE_STDOUT_CALLBACK=yaml ansible \ + ANSIBLE_STDOUT_CALLBACK=yaml \ + ANSIBLE_PIPELINING=true \ + ansible \ --vault-password-file=vault_pass \ --extra-vars '@vault.yml' \ --inventory inventories/lf_inventory/hosts site.yaml \ @@ -63,7 +65,9 @@ function ansible_playbook () { die "Failed to read hosts from working topology!" } pushd "${TOOLS_DIR}"/testbed-setup/ansible || die "Pushd failed!" - ANSIBLE_STDOUT_CALLBACK=yaml ansible-playbook \ + ANSIBLE_STDOUT_CALLBACK=yaml \ + ANSIBLE_PIPELINING=true \ + ansible-playbook \ --vault-password-file=vault_pass \ --extra-vars '@vault.yml' \ --inventory inventories/lf_inventory/hosts site.yaml \ -- 2.16.6