community.vmware icon indicating copy to clipboard operation
community.vmware copied to clipboard

vmware_guest_disk - allow changing controller type on existing disk

Open ifelsefi opened this issue 2 years ago • 3 comments

Hi

I have an existing disk that's scsi and want to change to nvme.

I attached the controller but each time I try the below a new disk gets created.

How can existing one be modified?

  - name: change disk to nvme | create feature request since does not work with any existing modules
    tags: change
    community.vmware.vmware_guest_disk:
      hostname: "{{ hostname }}"
      username: "{{ username }}"
      password: "{{ password }}"
      datacenter: "{{ datacenter }}"
      name: "{{ inventory_hostname }}"
      disk:
        - size_gb: '500'
          datastore: "{{ datastore }}"
          type: thin
          controller_type: nvme
          controller_number: 0
          unit_number: 0
    delegate_to: localhost

Thanks, Doug

ifelsefi avatar Jan 05 '22 18:01 ifelsefi

Im having same trouble.. it doesnt modify, it creates a new disk each time.

itayporezky avatar Mar 16 '22 08:03 itayporezky

@ifelsefi: Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information.

Here are the items we could not find in your description:

  • component name

Please set the description of this issue with this template: https://raw.githubusercontent.com/ansible/ansible/devel/.github/ISSUE_TEMPLATE/bug_report.md

click here for bot help

ansibullbot avatar Mar 16 '22 08:03 ansibullbot

COMPONENT NAME vmware_guest_disk

itayporezky avatar Mar 16 '22 08:03 itayporezky