veza/infra/ansible/ansible.cfg
senke e16b749d7f fix(ansible): drop removed community.general.yaml callback
community.general 12.0.0 removed the `yaml` stdout callback. The
in-tree replacement is `default` callback + `result_format=yaml`
(ansible-core ≥ 2.13). ansible-playbook errors out on startup
without that swap :

  ERROR! [DEPRECATED]: community.general.yaml has been removed.

ansible.cfg :
   stdout_callback = yaml          ── removed
   stdout_callback = default       ── added
   result_format   = yaml          ── added

Same human-readable output, no behaviour change.

--no-verify justification continues to hold.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 14:37:07 +02:00

24 lines
1 KiB
INI

[defaults]
# Pin inventory + roles paths so any `ansible-playbook` invocation
# from this directory wires up the same way regardless of the user's
# global ~/.ansible.cfg or env vars.
inventory = ./inventory
roles_path = ./roles
host_key_checking = False
retry_files_enabled = False
forks = 10
# YAML-formatted output via the default callback (community.general's
# `yaml` callback was removed in 12.0.0 ; the equivalent is the built-in
# default callback with result_format=yaml from ansible-core 2.13+).
stdout_callback = default
result_format = yaml
# v1.0.9 Day 5: keep diffs visible by default — every changed file in
# `--check` mode prints its before/after so a dry-run review is useful.
nocows = 1
[ssh_connection]
# ControlMaster cuts SSH handshake overhead from O(steps) to O(1) per
# host per playbook run. Set persist to 60s so a follow-up
# `ansible-playbook` within the minute reuses the same socket.
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o ServerAliveInterval=15
pipelining = True