Hi

I am for some reason, really struggling to pull an item from stdout and 
register it.

Inside play:

   1. - debug:
   2.     msg: "{{ output.stdout }}"
   
Output:


   1. ok: [localhost] => {
   2.     "msg": {
   3.         "code": 200,
   4.         "data": "10.50.3.26",
   5.         "success": true,
   6.         "time": 0.006
   7.     }
   8. }
   
What I am looking to do is extract the 'data' item from the result.

I have tried {{ output.stdout[data] }} amongst other things but I just 
don't seem to be able to get it going and Googling doesn't seem to show 
what I'm after. I can only with with_items elements.

Can anyone advise?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to