-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathansible.cfg
44 lines (35 loc) · 1.55 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Configuration file for ansible.
# See http://docs.ansible.com/ansible/latest/intro_configuration.html
[defaults]
# Default inventory
inventory = ./hosts
# Installs collections into [current dir]/ansible_collections/namespace/collection_name
collections_path = ./
# Installs roles into [current dir]/roles/namespace.rolename
roles_path = ./roles
# Configure output
# You may set the following variables to change the behavior :
# - ANSIBLE_DISPLAY_OK_HOSTS="true|false"
# - ANSIBLE_DISPLAY_SKIPPED_HOSTS="true|false"
# - ANSIBLE_SHOW_CUSTOM_STATS="true|false"
# See also https://docs.ansible.com/ansible/latest/plugins/callback/default.html.
callbacks_enabled = timer, profile_tasks
stdout_callback = default
check_mode_markers = true
display_failed_stderr = true
display_ok_hosts = false
display_skipped_hosts = false
show_custom_stats = true
show_per_host_start = true
# Configure warnings and errors.
error_on_undefined_vars = true
system_warnings = true
deprecation_warnings = true
# Better message for {{ ansible_managed }} string.
ansible_managed = This file is managed by Ansible. Manual changes are likely to be overwritten !
# Reduces the number of SSH operations required to execute a module on the remote server
# See https://docs.ansible.com/ansible/latest/reference_appendices/config.html#ansible-pipelining.
pipelining = true
[ssh_connection]
# Same as defaults, but enforce publickey auth and disable compression (because it slows down things on fast networks).
ssh_args = -4 -C -o ControlMaster=auto -o ControlPersist=180s -o PreferredAuthentications=publickey