Hello

im trying to attach exiting disk (raw) to a vm:

---

# Add fiber chanel disk
#- name: Create disk
#  ovirt.ovirt.ovirt_disk:
#    auth: "{{ ovirt_auth }}"
#    name: "{{ item.0 }}"
#    host: "{{host}}"
#    shareable: True
#    interface: virtio_scsi
#    vm_name: "{{hostname}}"
#    scsi_passthrough: disabled
#    logical_unit:
#        id: "{{ item.1 }}"
#        storage_type: fcp
#  loop: "{{ disk_name | zip(lun) | list }}"

# Add disk second node
- name: Create disk
  ovirt.ovirt.ovirt_disk:
    auth: "{{ ovirt_auth }}"
    vm_name: "{{hostname2}}"
    name: "{{ item.0 }}"
    host: "{{host}}"
    interface: virtio_scsi
    logical_unit:
        id: "{{ item.1 }}"
        storage_type: fcp
  loop: "{{ disk_name | zip(lun) | list }}"

the commented task work, but i want add the disk to second vm but not work.

any suggest?

regards

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7b61aa22-7bff-491c-ae5f-c467ff5acc27n%40googlegroups.com.

Reply via email to