## Copyright (C) 2026 - 2026 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

## AI-Assisted

## Ansible configuration for the automated_builder pipeline.
## Pointed at via ANSIBLE_CONFIG from
## automated_builder/scripts/functions.bash.

[defaults]
## Render task results as multi-line YAML. The default callback
## emits failed stderr as a JSON-encoded single-line string; the
## yaml render format renders one line per line, which the GitHub
## Actions log viewer can display readably.
##
## Historically this was `stdout_callback = yaml`, which routed
## through the `community.general.yaml` callback. That callback
## was removed in `community.general` 12.0.0; ansible's own error
## suggested `result_format=yaml` in `ansible.builtin.default`,
## conflating the option name with the INI key. The INI key is
## actually `callback_result_format` (see ansible-core
## `lib/ansible/plugins/doc_fragments/result_format_callback.py`).
## Ansible silently drops unknown INI keys, so `result_format = yaml`
## did nothing and every failed task still rendered as a JSON
## one-liner with literal "\n" escapes.
stdout_callback = default
callback_result_format = yaml

## Surface the remote command's stderr as its own block on failure
## instead of burying it inside the result dict.
display_failed_stderr = True

## Apply the same callback to ad-hoc 'ansible' invocations.
bin_ansible_callbacks = True

## deprecation_warnings is intentionally left at default (True);
## do not silence - address deprecations as they arise.
