viasite-ansible / ansible-role-zsh

Setup antigen with oh-my-zsh, powerlevel10k theme, fzf, autosuggestions, syntax-highlighting
https://habrahabr.ru/post/323496/
MIT License
347 stars 85 forks source link

Task "Check commands exists" executes too slow #11

Closed popstas closed 7 years ago

popstas commented 7 years ago

Up to 30 seconds on slow hosts. Command should execute below 5 seconds.

popstas commented 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