prole/infrastructure/ansible.cfg
chrisfu c0b15f2609 Update Ansible configuration to enable run_logger callback plugin
- Added `callback_plugins` and `callbacks_enabled` configurations in `ansible.cfg` and `infrastructure/ansible.cfg` to activate the `run_logger`.
2026-01-24 00:41:34 -08:00

26 lines
799 B
INI

[defaults]
# Note: When running from the project root, the root ansible.cfg is used.
# This file is for running ansible-playbook from within the infrastructure/ directory.
inventory = inventory/hosts.ini
roles_path = roles
collections_paths = collections
interpreter_python = auto_silent
callback_plugins = ../lib/ansible/plugins/callback
callbacks_enabled = run_logger
# For Ansible < 2.13, we use community.general.yaml
# For Ansible >= 2.13, we should use result_format=yaml in ansible.builtin.default
# To maintain compatibility, we use the default callback and set result_format
stdout_callback = default
result_format = yaml
forks = 20
timeout = 30
host_key_checking = True
[privilege_escalation]
become = True
become_method = sudo
become_ask_pass = False
[ssh_connection]
pipelining = True