I'm using the *uri* module to call a REST API. The result of this is shown 
below. I now want to save the *location* portion into a variable to use 
later in my script.


How do I do that?


I've tried:


register: msg // register: content // register: status


I'm using the *uri *as a pre_task - if that makes any difference?


I've also trying using:


  tasks:

   - debug: var=msg.location // - debug: var=content.location // - debug: 
var=\"{{ status.location}}\" // -debug: var=\"{{ status.location | 
from_json }}\"


Basically every combination of the obvious.






<http://i.stack.imgur.com/UObNv.jpg>

-- 
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/4be00ac9-f4a6-4695-8216-7637c509c69b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to