[ansible]attach vdisk to vm

Hello ever1 i create a playbook for create and attach vdisk (from direct lun) to vm, the firs block work. I want attach the created vdisk to second vm. how can do? --- # 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 }}" thanks
participants (1)
-
Pietro Pesce