From 89a6d45d6ea394bd14acdad0ac1fb34568b82e96 Mon Sep 17 00:00:00 2001 From: "tommaso.piccioli" Date: Mon, 8 May 2017 18:42:27 +0200 Subject: [PATCH] ControlPersist=600s parameter in ansible on shell --- ansible_ppa/defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible_ppa/defaults/main.yml b/ansible_ppa/defaults/main.yml index 09013ac..610ac99 100644 --- a/ansible_ppa/defaults/main.yml +++ b/ansible_ppa/defaults/main.yml @@ -25,6 +25,7 @@ ansible_config_options: - { section: 'defaults', option: 'gathering', value: '{{ ansible_gathering }}', state: 'present' } - { section: 'defaults', option: 'host_key_checking', value: False, state: 'present' } - { section: 'defaults', option: 'command_warnings', value: '{{ ansible_command_warnings }}', state: 'present' } + - { section: 'defaults', option: 'ssh_args', value: '-o ControlMaster=auto -o ControlPersist=60s', state: 'present' } - { section: 'defaults', option: 'control_path', value: '{{ ansible_control_path }}', state: 'present' } - { section: 'defaults', option: 'ansible_managed', value: 'Ansible managed: {file} on {host}', state: 'present' } - { section: 'defaults', option: 'action_plugins', value: '{{ ansible_plugins_base_dir }}/action', state: 'present' }