ansible: Speedup playbook execution by reusing ssh connections

This restores the default ssh_args for Ansible. When present Ansible
instructs ssh to keep a connection open for a short period after
exiting. Subsequent ssh processes can then skip TCP & SSH hand shake.
This commit is contained in:
Alex Willmer 2020-05-12 23:16:46 +01:00
parent 9b68599834
commit 9a3f803bad
1 changed files with 3 additions and 0 deletions

View File

@ -9,5 +9,8 @@ host_key_checking = false
# However, remote systems must not have requiretty set in /etc/sudoers. # However, remote systems must not have requiretty set in /etc/sudoers.
pipelining = true pipelining = true
ssh_args = ssh_args =
-C
-o ControlMaster=auto
-o ControlPersist=60s
-o ForwardAgent=yes -o ForwardAgent=yes
-o UserKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null