Hi Brian - thanks for the reply.

I had found from_json....but then I realized that the uri module is 
actually putting stuff into an attribute of registered_variable called 
registered_variable.json.

I did solve my problem, though....it was a bonehead YAML syntax issue with 
the indents of my with_items statement.

I had:

    - set_fact:
        devices: "{{ registered_variable.json.data }}"
    - debug:
          msg: "{{item.name}} is the device name"
          with_items: devices

When I should have had:

    - set_fact:
        devices: "{{ registered_variable.json.data }}"
    - debug:
          msg: "{{item.name}} is the device name"
      with_items: devices

-- 
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/2ee9208f-36be-4cf3-9087-41f5120e386f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to