diff options
author | Peter Mikus <pmikus@cisco.com> | 2020-04-06 13:37:01 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2020-04-06 13:37:01 +0000 |
commit | dbffa6cfb6fb83285f7d6b9f38648a42cfe08de5 (patch) | |
tree | 3589d7da7f9881b9b98366e45cf4f8ca948737d5 /resources/libraries/bash/function | |
parent | cd71713e4c5f8ed8d6f4137d6d2d94956b0f999a (diff) |
Ansible: Speed up by pipelining
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I3ad5675cda017b3dcf8cba88d56d5d6c11184e20
Diffstat (limited to 'resources/libraries/bash/function')
-rw-r--r-- | resources/libraries/bash/function/ansible.sh | 8 |
1 files 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 \ |