Error adding disk with vmware_guest_disk

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?