Hi.  I'm attempting to retrieve a specific id from multiple machines with 
the uri module.

The below ansible tasks can achieve the operation on one machine.

What is the best way to retrieve the ID from several machines? 


 - name: Retrieve Orchid MID
    uri:
      url: "{{ myurl }}"
      force_basic_auth: yes
      user: admin
      password: "{{ mypassword }}"
      timeout: 20
    register: machineid
    
  - name: DEBUG Retrieve Orchid MID
    debug:
      msg: "{{ machineid.json.orchids[0].mid }}"

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4699739c-bad7-419e-91b9-4da445f539e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to