Hello Team,
I need to add 15 disks , I am getting error because of 0:7 reservation.
Is there any automation …please find my below code and help
- name: Add disks
vmware_guest_disk:
hostname: “{{location}}”
username: “{{vcenteruser}}”
password: “{{vcenterpass}}”
validate_certs: no
datacenter: “{{datacentername}}”
name: “{{hostname}}”
disk: - size_gb: “{{ item }}”
type: thin
datastore: “{{datastoredetails}}”
state: present
scsi_controller: 0
unit_number: “{{ my_idx + 1 }}”
scsi_type: ‘paravirtual’
loop: “{{ storage }}”
loop_control:
index_var: my_idx
delegate_to: localhost