Skip to content

Commit

Permalink
use YAML output from ansible as it makes reading errors easier
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cardoe committed Jan 30, 2024
1 parent 8c08dc5 commit 6fbb958
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ansible/playbooks/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fbb958

Please sign in to comment.