# Error adding disk with vmware\_guest\_disk

**URL:** <https://forum.ansible.com/t/error-adding-disk-with-vmware-guest-disk/31240>\
**Category:** Ansible Project\
**Created:** [September 9, 2019, 3:02pm UTC](https://forum.ansible.com/t/error-adding-disk-with-vmware-guest-disk/31240 "2019-09-09T15:02:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKPhil](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@MKPhil](https://forum.ansible.com/u/MKPhil)\
**Post date:** [September 9, 2019, 3:02pm UTC](https://forum.ansible.com/t/error-adding-disk-with-vmware-guest-disk/31240/1 "2019-09-09T15:02:14Z")

</div>

I’m trying to use the vmware\_guest\_disk module (Ansible v2.8.2) to add a disk to a VM but am getting an error.

This is the relevant section of my playbook:

`

- name: Add a Disk VM  
vmware\_guest\_disk:  
hostname: “{{ vc\_hostname }}”  
username: “{{ vmware\_user }}@{{ vmware\_user\_domain }}”  
password: “{{ vmware\_password }}”  
validate\_certs: False  
datacenter: “{{ dc\_name }}”  
name: “{{ vm\_name }}”  
folder: “{{ folder\_name }}”  
disk:
- size\_gb: 1  
type: eagerzeroedthick  
state: present  
autoselect\_datastore: true  
scsi\_controller: 0  
unit\_number: 2  
scsi\_type: ‘lsilogicsas’  
delegate\_to: localhost  
`

The result I get is:

`TASK [Add a Disk VM] ***********************************************************Monday 09 September 2019 15:53:58 +0100 (0:00:00.076) 0:00:04.477****** fatal: [webtest2k8 -> localhost]: FAILED! => {"changed": false, "msg": "Failed to manage disks for virtual machine 'webtest2k8' with exception : (\"Invalid configuration for device '0'.\", None)"}`

There are already disks on SCSI 0:0 and 0:1, using an LSI Logic SAS controller. I’ve tried various other options but with no change.

Any thoughts?
