What does your 'storage' variable look like?
On Wed, 10 Jun 2020 at 18:53, Bhanu Prakash <[email protected]> wrote:
> 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
>
> --
> 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/e17ebdd8-fad4-42e2-a7f5-f31dd619362fo%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e17ebdd8-fad4-42e2-a7f5-f31dd619362fo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.
--
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/CAL8fbwMSp7X4-s7bues2wjKjObdtE%2Byyo4HoG0vdFXk7JP5jWw%40mail.gmail.com.