From 024e18c10a4d71e37bdeda2cde89590eaea05d8b Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Fri, 26 Oct 2018 18:37:10 +0000 Subject: [PATCH] cleanup connection file --- defaults/main.yaml | 1 + templates/ansible.cfg.j2 | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index 7c67ade..778d87c 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -1,3 +1,4 @@ ansible_use_ara: false ansible_use_mitogen: true ansible_with_ovh_module: true +ansible_use_ssh_pipelining: true diff --git a/templates/ansible.cfg.j2 b/templates/ansible.cfg.j2 index 79adb95..c83529b 100644 --- a/templates/ansible.cfg.j2 +++ b/templates/ansible.cfg.j2 @@ -15,6 +15,9 @@ retry_files_enabled = False callback_plugins = {{ _ara_location.stdout }}/plugins/callbacks {% endif %} +{% if not ansible_use_mitogen %} [ssh_connection] -ssh_args = -o CheckHostIP=no -o StrictHostKeyChecking=yes +{% if ansible_use_ssh_pipelining %} pipelining = True +{% endif %} +{% endif %}