December 5, 2016 · ansible
ansible - pretty printing errors
Ansible does not do a great job at pretty printing exceptions/errors. There are plugins available that make this easy.
mkdir -p ~/ansible/plugins/callback
cd ~/ansible/plugins/callback
wget https://raw.githubusercontent.com/marcosdiez/ansible_human_log.py/master/human_log.py
create/edit ~/.ansible.cfg
and add the following to the defaults
section,
[defaults]
callback_plugins = ~/ansible_plugins/callback
Done!