Quick Tip: Ansible Debugging

07 Jan 2014

Today I learned something about Ansible debugging from benno on #ansible. Occasionally, commands can get stuck, especially if it’s waiting for input. You can’t fix this until you recognize what’s going on and see the prompt. In other words, you want to see the stdout and stderr on the target machine. Here’s what you do:

  • Run ansible with -vvv.
  • Login to the remote host where the command is being executed.
  • Find the ansible process executing the command and kill them.
  • The stdout and stderr should be printed to the console where ansible was running.

Comments

blog comments powered by Disqus