ure out how to query the returned array to match a particular value.
>
> I was also able to set a specific value to a variable with set_fact:
>
> - name: set variable for target_vm_id
> set_fact:
> target_vm_id: "{{ vminfo.json.data[0].id }}"
>
>
> O
I'd like to leverage systems with an API to provide variables to playbooks
running on the controller.
Something similar to a dynamic inventory script loading from an external
system.
For example with a curl command and can get the exact contents I need. IE:
{"myVariable":"myValue"} or yaml