update_subnet_uuids.yml 240 B

123456
  1. ---
  2. # Update VM specifications with subnet UUIDs
  3. - set_fact:
  4. vm_defs_1: "{{ vm_defs_1 |default([]) + [my_vm | combine({ 'vm_subnet_uuid' : item. uuid })] }}"
  5. when: my_vm.vm_subnet_name == item.name
  6. with_items: "{{ subnet_uuids }}"