Created
February 25, 2014 08:46
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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