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.
Written by Jorge Dias
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Debugging
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#