Last Updated: February 25, 2016
·
532
· diasjorge

Debugging Ansible

If you want to see what exactly is ansible executing, you can do the following:
export ANSIBLE_KEEP_REMOTE_FILES=1
This will keep the files that ansible executes for the provisioning in the file systems and the won't be deleted when it finishes running.

You can then inspect those files and be able to debug some obscure error messages.

Then when you execute ansible or ansible-playbook, you can give the -vvvv flag to see more information including the location of the files being executed.