I'm not convinced your output matches your playbook.

Are you sure you're running it correctly ?

Your output:
TASK [debug] 
*******************************************************************
ok: [myhost] => {
    "bash_version": {
etc...

... implies you are using the debug module with a variable called 
bash_version, e.g.
  - name: output bash
    command: rpm -q bash
    register bash_version

  - debug: var=bash_version

Which is not the same as the playbook you've quoted.

BTW, to get the stdout, you are nearly correct.

Use:

  - debug: msg="{{ result.stdout }}"


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1a151279-87fc-48d1-ad00-de8d30715afa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to