Ansible SSH Pipelining & ControlMaster
Speed up your ansible ssh pipelining. Share a connection instead of reconnecting.
SSH config
Create ssh control path
mkdir ~/.ssh/sockets
~/.ssh/config
Host *
Compression yes
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%h-%p
ControlPersist 600
Ansible config
./ansible.cfg
[ssh_connection]
pipelining = True
ssh_args = -F /Users/tcrowe/.ssh/config
Swap out tcrowe
for your user.
Good to go!
Combine with SSH over Tor