# it is possible to save the result of any command in a named register. This variable will be made
# available to tasks and templates made further down in the execution flow.
- shell: uname -a
ignore_errors: yes
register: uname_result
- debug:
msg: "{{ uname_result.stdout }}" ##should be like this