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 %}