Last active
July 16, 2018 23:21
-
-
Save xlbruce/855b82516c3a495d49b83fe7a826ff94 to your computer and use it in GitHub Desktop.
Ansible initial config example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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