Skip to content

Instantly share code, notes, and snippets.

@toast38coza
Created February 25, 2014 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toast38coza/9205206 to your computer and use it in GitHub Desktop.
Save toast38coza/9205206 to your computer and use it in GitHub Desktop.
Get the stdout response from an ansible task. From: https://gist.github.com/toast38coza/6bdd151eae2ee9d751a7
- name: print to stdout
command: echo "hello"
register: hello
- debug: msg="{{ hello.stdout }}"
- debug: msg="{{ hello.stderr }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment