On 11. juli 2017 22:15, Rasmus Sjørslev wrote:
- name: Register VM information which will later be written to disk as YAML
   set_fact:
     vminfo: "{{ vminfo + [ {'name': '{{ item.hostname }}', 'ip': '{{
free_ip.json.data | ipv4 }}', 'uuid': '{{
vm_creation.instance.hw_product_uuid }}'} ] }}"

<snip />

- name: Register the assigned IP address for later use
   set_fact:
     new_vms: "{{ new_vms }} + [ '{{ free_ip.json.data | ipv4 }}' ]"

Well, they have not the same structure.
Have you tried writing the first one in the same manner that the second one is?

{{ vminfo }} + ............

--
Kai Stian Olstad

--
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/ff29da0b-5377-e1b7-2e84-ca67affc2d9f%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to