Hi, I was new on Ansible and testing some functionalities with Windows hosts.
Task:
-
name: Check if Java is installed
win_command: java -version
register: java_result -
name: Print Java_result
debug:
msg: “{{ java_result }}”
Output:
Hi, I was wondering why my output was placed in stderr.
I was expecting the output will be in stdout since the command was successful and there was installed java in my host.
Can someone give me their opinion on this?
Thank you very much.