From 6fbb958d665fa69bc7cb7a74ea07112a69e728a9 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Tue, 30 Jan 2024 08:08:51 -0600 Subject: [PATCH] use YAML output from ansible as it makes reading errors easier Opinionated commit here that it's easier to read the YAML output on failure then it is to read the giant single line JSON blob when a failure happens. --- ansible/playbooks/ansible.cfg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible/playbooks/ansible.cfg b/ansible/playbooks/ansible.cfg index a113a780..b0fb054e 100644 --- a/ansible/playbooks/ansible.cfg +++ b/ansible/playbooks/ansible.cfg @@ -9,7 +9,10 @@ gathering = smart fact_caching = jsonfile fact_caching_connection = /tmp fact_caching_timeout = 86400 -stdout_callback = default +# Use the YAML callback plugin because it's easier to read the errors +stdout_callback = YAML +# Use the stdout_callback when running ad-hoc commands. +bin_ansible_callbacks = True display_skipped_hosts = no callbacks_enabled = profile_tasks deprecation_warnings = False