Skip to content

Instantly share code, notes, and snippets.

@ngelik
Forked from krigar/ansible.cfg
Created June 25, 2018 12:04
Show Gist options
  • Select an option

  • Save ngelik/c4e85215ba680301899ad9f0e4aec3c8 to your computer and use it in GitHub Desktop.

Select an option

Save ngelik/c4e85215ba680301899ad9f0e4aec3c8 to your computer and use it in GitHub Desktop.
Bastion Playbook
[ssh_connection]
ssh_args = -F ssh.cfg
control_path = ~/.ssh/mux-%r@%h:%p
[bastion]
54.171.0.0
[app_servers]
172.16.1.1
172.16.2.1
Host 172.16.*
ProxyCommand ssh -W %h:%p [email protected]
Host *
ControlMaster auto
ControlPath ~/.ssh/mux-%r@%h:%p
ControlPersist 15m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment