Skip to main content

Debugging Ansible Playbook

Here are command line switches to enable debug logging of an ansible playbook:

#Specify the location for the log file

export ANSIBLE_LOG_PATH=~/ansible.log

#Enable Debug

export ANSIBLE_DEBUG=True

#Run with 4*v for connection level verbosity

ansible-playbook -vvvv ...