Enable ansible pipelining 90/8290/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 8 Jan 2018 05:04:35 +0000 (00:04 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 8 Jan 2018 05:04:39 +0000 (00:04 -0500)
Pipelining speeds up tasks considerably as long as !requiretty is
set in sudoers.

Change-Id: Iaf968efce0b028608b3777b0ff64d21bbaa0bed4
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
templates/builder.json.example
templates/docker.json.example

index 72e5c92..5f709ef 100644 (file)
@@ -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"
index c566989..6e92844 100644 (file)
@@ -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"