I think you can register the result to a variable, then print with debug.
- name: print to stdout
command: echo "hello"
register: hello
- debug: msg="{{ hello.stdout }}"
- debug: msg="{{ hello.stderr }}"
Related Posts:
- Confused about stdin, stdout and stderr?
- STDERR? What is it? What are its common uses?
- Chrome: Uncaught SyntaxError: Unexpected end of input
- Missing sudo password in Ansible
- Difference between $stdout and STDOUT in Ruby
- What’s the difference between include_tasks and import_tasks?
- How to set default Ansible username/password for SSH connection?
- Ansible: Execute task only when a tag is specified
- Adding a user to an additional group using ansible
- How to unify package installation tasks in ansible?
- How can I convert MP3 file to a Base64 encoded string? [closed]
- What is a sanity test/check
- What is an instance variable in Java?
- Discord music bot not working
- Python Math – TypeError: ‘NoneType’ object is not subscriptable
- TCP vs UDP – What is a TCP connection? [duplicate]
- ssh : Permission denied (publickey,gssapi-with-mic)
- Error in “MLSD” command While Connecting FTP to Server [closed]
- Java default constructor
- How do I make a delay in Java?
- did you specify the right host or port? error on Kubernetes
- How does Java’s PriorityQueue differ from a min-heap?
- What is a Memory Heap?
- 403 Forbidden vs 401 Unauthorized HTTP responses
- Advanced AREL or just Rails Query for has_many through search by association
- What is a bitmask and a mask?
- How to track down a “double free or corruption” error
- C++ code file extension? What is the difference between .cc and .cpp
- How to remove origin from git repository
- XPath contains(text(),’some string’) doesn’t work when used with node with more than one Text subnode
- Transport endpoint is not connected
- How to convert .crt to .pem [duplicate]
- pagebreak in markdown while creating pdf
- wntdll.pdb not loaded – Can’t see the exception
- multiple prints on the same line in Python
- PHP parse/syntax errors; and how to solve them
- How do I correctly clean up a Python object?
- How I can print to stderr in C?
- How do I split a string on a delimiter in Bash?
- Why does Wi-Fi have so much more bandwidth than Bluetooth?
- The difference between stdout and STDOUT_FILENO
- What’s the difference between & and && in MATLAB?
- java.text.ParseException: Unparseable date
- Difference between .o and .ko file
- R error: all arguments must have the same length
- spring @sqlgroup with multiple datasource
- What is the definition of a “disparity map”?
- Alternative to ui-grid(doesn’t support angular2/4)
- How do I install the OpenSSL libraries on Ubuntu?
- How can I specify a display?
- Clearing localStorage in javascript?
- Search all the occurrences of a string in the entire project in Android Studio
- “docker build” requires exactly 1 argument(s)
- declaring a priority_queue in c++ with a custom comparator
- Android java.lang.IllegalStateException: Could not execute method of the activity
- Debug assertion failed
- SwiftUI – How do I change the background color of a View?
- How to resolve the error java.net.SocketException: Too many open files
- Using map in Haskell
- cannot load such file — bundler/setup (LoadError)
- Downgrade npm to an older version
- Mongoose.js: remove collection or DB
- slideToggle JQuery right to left
- Valgrind Invalid free() / delete / delete[] / realloc() in C
- Exception in thread “main” java.lang.reflect.InvocationTargetException
- What’s the difference between SoftReference and WeakReference in Java?
- Identity matrix in Julia
- Letsencrypt renewal fails: Could not bind to IPv4 or IPv6.. Skipping
- Devise lockable – How to unlock account using unlock_in
- How to bind multiple values to a single WPF TextBlock?
- reversing list in Lisp
- How to disable Windows Update Medic Service?
- Systrace for Windows
- Good way to encapsulate Integer.parseInt()
- TCP/IP packets and datagrams
- ArrayList of int array in java
- 2CHECKOUT ERROR CODE:PE102
- Android Debugging Failing With “Couldn’t connect to logcat, GetProcessId returned: 0” FFImageLoading.Platform.dll.so Not Found
- PHP – Indirect modification of overloaded property
- Rewrite the base-url for single posts
- use wp_get_theme() to get theme author name
- Displaying a message when plug-in is deactivated
- A post has a js redirection script. How to not redirect its category?
- get_previous_post in same categories
- Add column(s) to post edit page
- How can i hide and display elements automatically?
- How to change the paginated posts link class?
- How use custom image size + ACF + background image
- Pass AJAX variable to PHP functions WordPress plugin
- Add query args if website open in mobile
- A little stumped – first WordPress theme
- Display shortcode based on user meta
- Woocommerce Image Categorie Page
- Hide image on homepage [closed]
- Transfer 10 TB of files from USA to UK datacenter
- How does ServerName and ServerAlias work?
- How can I find the path to an executable in OSX
- How to accurately check if package is installed in yum?
- What is the difference between SAN, NAS and DAS?
- Do you skip a rack unit between servers?