# How to increase VM OS disk, from template, using ansible vmware guest module

**URL:** <https://forum.ansible.com/t/how-to-increase-vm-os-disk-from-template-using-ansible-vmware-guest-module/32635>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [April 8, 2020, 12:34pm UTC](https://forum.ansible.com/t/how-to-increase-vm-os-disk-from-template-using-ansible-vmware-guest-module/32635 "2020-04-08T12:34:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhanu\_Prakash](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@Bhanu\_Prakash](https://forum.ansible.com/u/Bhanu_Prakash)\
**Post date:** [April 8, 2020, 12:34pm UTC](https://forum.ansible.com/t/how-to-increase-vm-os-disk-from-template-using-ansible-vmware-guest-module/32635/1 "2020-04-08T12:34:55Z")

</div>

Team,

I am looking for an option

# How to increase VM OS disk, from template, using ansible vmware guest module.

Can anyone support

Thanks.

---

<div class="post-metadata">

**Author:** ![David\_Foley](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Post date:** [April 8, 2020, 12:53pm UTC](https://forum.ansible.com/t/how-to-increase-vm-os-disk-from-template-using-ansible-vmware-guest-module/32635/2 "2020-04-08T12:53:14Z")

</div>

Hi Bhanu,

Are you trying to Deploy From Template but to Increase the Disk , if so a simple

```auto
vm_disk:
      disk1:
        size_gb: 10
        type: thin
        datastore: storage001

```

```auto
What is not supported is the decrease the disk size 

```

---

<div class="post-metadata">

**Author:** ![Bhanu\_Prakash](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@Bhanu\_Prakash](https://forum.ansible.com/u/Bhanu_Prakash)\
**Post date:** [April 8, 2020, 1:37pm UTC](https://forum.ansible.com/t/how-to-increase-vm-os-disk-from-template-using-ansible-vmware-guest-module/32635/3 "2020-04-08T13:37:03Z")

</div>

Than you so much … I was thinking that’s for additional disk, but not for OS disk … It worked …

disk:

- size\_gb: 60  
type: thin  
datastore: “test”

Thanks and Regards

Bhanu Prakash K
