Closed popstas closed 7 years ago
No role modification needed, I added to ansible.cfg:
[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s
It reduced execution time of ansible-playbook zsh.yml --tags configure
from 55 seconds to 12 seconds on slow host.
See docs - http://docs.ansible.com/ansible/intro_configuration.html#ssh-args
Up to 30 seconds on slow hosts. Command should execute below 5 seconds.