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>
This commit is contained in:
senke 2026-04-30 14:37:07 +02:00
parent 3cb0646a87
commit e16b749d7f

View file

@ -7,7 +7,11 @@ roles_path = ./roles
host_key_checking = False host_key_checking = False
retry_files_enabled = False retry_files_enabled = False
forks = 10 forks = 10
stdout_callback = yaml # 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 # 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. # `--check` mode prints its before/after so a dry-run review is useful.
nocows = 1 nocows = 1