homelab/ansible/ansible.cfg

37 lines
850 B
INI

[defaults]
# Inventory configuration
inventory = inventory/hosts.ini
host_key_checking = False
deprecation_warnings = False
interpreter_python = auto_silent
# Paths (relative to this ansible/ directory)
roles_path = ./roles:~/.ansible/roles:/usr/share/ansible/roles
# Vault configuration
vault_password_file = vault/.vault_pass
# Performance tuning
forks = 5
timeout = 30
gathering = smart
fact_caching = jsonfile
fact_caching_connection = /tmp/ansible_facts
fact_caching_timeout = 3600
# Callbacks for better output
callbacks_enabled = timer, profile_tasks
# Logging
log_path = ansible.log
[privilege_escalation]
become = False
become_method = sudo
become_user = root
become_ask_pass = False
[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
pipelining = True