From: Thanh Ha Date: Mon, 8 Jan 2018 05:04:35 +0000 (-0500) Subject: Enable ansible pipelining X-Git-Tag: v0.1.0~56 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=745938dba45f9d05b9afb1e0613161a2c1a46075;p=releng%2Fcommon-packer.git Enable ansible pipelining Pipelining speeds up tasks considerably as long as !requiretty is set in sudoers. Change-Id: Iaf968efce0b028608b3777b0ff64d21bbaa0bed4 Signed-off-by: Thanh Ha --- diff --git a/templates/builder.json.example b/templates/builder.json.example index 72e5c92..5f709ef 100644 --- a/templates/builder.json.example +++ b/templates/builder.json.example @@ -49,6 +49,7 @@ "playbook_file": "common-packer/provision/baseline.yaml", "ansible_env_vars": [ "ANSIBLE_NOCOWS=1", + "ANSIBLE_PIPELINING=True", "ANSIBLE_ROLES_PATH=../lf-ansible/roles", "ANSIBLE_CALLBACK_WHITELIST=profile-tasks", "ANSIBLE_STDOUT_CALLBACK=debug" diff --git a/templates/docker.json.example b/templates/docker.json.example index c566989..6e92844 100644 --- a/templates/docker.json.example +++ b/templates/docker.json.example @@ -49,6 +49,7 @@ "playbook_file": "common-packer/provision/docker.yaml", "ansible_env_vars": [ "ANSIBLE_NOCOWS=1", + "ANSIBLE_PIPELINING=True", "ANSIBLE_ROLES_PATH=../lf-ansible/roles", "ANSIBLE_CALLBACK_WHITELIST=profile_tasks", "ANSIBLE_STDOUT_CALLBACK=debug"