ideadevice / ansible-ahv-provider-plugin

Ansible plugins to interact with AHV APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

increase image size when deploying a VM don't work

tuxtof opened this issue · comments

- name: Create VM example
  hosts: localhost
  vars_files:
  - spe-pc.yaml
  collections:
  - nutanix.nutanix
  tasks:
  - name: Create VM
    nutanix_vm:
      pc_hostname: "{{ pc_hostname }}"
      pc_username: "{{ pc_username }}"
      pc_password: "{{ pc_password }}"
      validate_certs: False
      # state: absent
      name: "vm-0001"
      cpu: 2
      vcpu: 2
      memory: 2048
      cluster: 000569a2-f105-8472-0000-000000017206
      disk_list:
      - device_type: DISK
        clone_from_image: 14720987-e801-45d9-9bcd-149f935acb32
        size_mib: 20480
        adapter_type: SCSI
      nic_list:
      - uuid: 88637d13-b0e0-4e5e-9eee-f4ee12eb925a
      guest_customization:
        cloud_init: |-
          #cloud-config

          users:
            - name: cris
              ssh_authorized_keys:
                - ssh-rsa xxxxxxxxx
              sudo: ['ALL=(ALL) NOPASSWD:ALL']
    delegate_to: localhost
    register: vm
  - debug:
        msg: "{{ vm }}"

create the VM but disk stay a the image size and not the new expected one (20480)