2026-08-03 12:26:42 +08:00
|
|
|
[defaults]
|
|
|
|
|
inventory = inventory/hosts.yml
|
|
|
|
|
roles_path = roles
|
|
|
|
|
interpreter_python = auto_silent
|
|
|
|
|
stdout_callback = default
|
|
|
|
|
bin_ansible_callbacks = True
|
|
|
|
|
retry_files_enabled = False
|
|
|
|
|
host_key_checking = True
|
|
|
|
|
|
|
|
|
|
[privilege_escalation]
|
|
|
|
|
become = True
|
|
|
|
|
become_method = sudo
|
|
|
|
|
become_ask_pass = False
|
2026-08-17 17:36:39 +08:00
|
|
|
|
|
|
|
|
[ssh_connection]
|
|
|
|
|
# Keep SSH control sockets inside the repo (gitignored .ansible/) so playbook
|
|
|
|
|
# runs work in sandboxed/CI environments without touching ~/.ansible.
|
|
|
|
|
ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=.ansible/ssh-control/%h-%p-%r
|