Skip to content

Instantly share code, notes, and snippets.

@xlbruce
Last active July 16, 2018 23:21
Show Gist options
  • Save xlbruce/855b82516c3a495d49b83fe7a826ff94 to your computer and use it in GitHub Desktop.
Save xlbruce/855b82516c3a495d49b83fe7a826ff94 to your computer and use it in GitHub Desktop.
Ansible initial config example
# vim: ft=ansible_hosts
[defaults]
ansible_python_interpreter = /usr/bin/env python
ansible_managed = Ansible Managed. Please refrain from making manual changes.
host_key_checking = False
accept_hostkeys = yes
remote_user = admin
hash_behaviour = merge
retry_files_enabled = False
roles_path = roles
library = library
display_skipped_hosts = True
vault_password_file = .vault_password
jinja2_extensions = jinja2.ext.loopcontrols
[ssh_connection]
ssh_args = -F ssh_config
pipelining = True
# vim: ft=sshconfig
Host *
ServerAliveInterval 60
StrictHostKeyChecking no
TCPKeepAlive yes
ForwardAgent yes
ControlMaster auto
ControlPath ~/.ssh/mux-%r@%h:%p
ControlPersist 120s
#Connect using Bastion
#Host 172.32.*.*
# user admin
# ProxyCommand ssh user@bastion-host -W %h:%p
#Custom hosts
#Host myhost
# user admin
# hostname 172.32.80.38
# ProxyCommand ssh user@bastion-host -W %h:%p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment