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


Host *
  Compression yes
  ControlMaster auto
  ControlPath ~/.ssh/sockets/%r@%h-%p
  ControlPersist 600

Ansible config


pipelining = True
ssh_args = -F /Users/tcrowe/.ssh/config

Swap out tcrowe for your user.

Good to go!

Combine with SSH over Tor

Home Experience Archives Github Repos