-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathansible.cfg
More file actions
20 lines (19 loc) · 738 Bytes
/
ansible.cfg
File metadata and controls
20 lines (19 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Don't install roles /collections globally
[defaults]
roles_path = ./roles
collections_paths = ./collections
host_key_checking = False
remote_user = vagrant
deprecation_warnings = False
# Cache facts so subsequent runs skip re-gathering (1hr TTL)
gathering = smart
fact_caching = jsonfile
fact_caching_connection = /tmp/ansible_facts_cache
fact_caching_timeout = 3600
# Run tasks across hosts in parallel
forks = 10
[ssh_connection]
# Pipelining sends module code over stdin instead of SCP — big speedup
pipelining = True
# Reuse SSH connections across tasks; /tmp avoids issues with read-only mounts in devcontainer
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%h-%p-%r -o ConnectTimeout=10