-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathansible.cfg
28 lines (23 loc) · 1.04 KB
/
ansible.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[defaults]
inventory = inventories/production/inventory
# Connect as root
remote_user = root
# Alternatively, connect as user with sudo privileges
#remote_user = bob
#[privilege_escalation]
#become_ask_pass = True
# The comment inserted into files written by Ansible’s config templating system
#ansible_managed = Ansible managed: Modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
# More readable output format
stdout_callback = yaml
[ssh_connection]
# Reduce the number of SSH operations required to execute a module on the remote
# server to improve performance.
# Note: When using “sudo:” operations you must first disable ‘requiretty’ in
# /etc/sudoers on all managed hosts.
# See also http://docs.ansible.com/ansible/intro_configuration.html#pipelining
pipelining = True
# Increase the ControlPersist time to encourage performance. A value of 30
# minutes should be appropriate.
# See also http://docs.ansible.com/ansible/intro_configuration.html#ssh-args
ssh_args = -o ControlMaster=auto -o ControlPersist=1800s