# Help me to achive this task

**URL:** <https://forum.ansible.com/t/help-me-to-achive-this-task/35854>\
**Category:** Ansible Project\
**Created:** [October 12, 2021, 3:28pm UTC](https://forum.ansible.com/t/help-me-to-achive-this-task/35854 "2021-10-12T15:28:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dineshbabu\_Shankar](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@Dineshbabu\_Shankar](https://forum.ansible.com/u/Dineshbabu_Shankar)\
**Post date:** [October 12, 2021, 3:28pm UTC](https://forum.ansible.com/t/help-me-to-achive-this-task/35854/1 "2021-10-12T15:28:11Z")

</div>

My requiremnt ,

i need to add the disk to vms in vcenter by passing  
vm name, datastorename , and disk\_size via csv file ,

with the following condition.

1. datastore which i am providing the csv should be in facts collected from vms  
2.datastore free volume is greater than what we requested (disk\_size)  
3.after taking the required disk\_size the datastore should be greater than equal to 20% of the total size of the datastore .

i can achieve this for the single server but for more than one server i am struggling , can any one help me ,

Working one (for one server )

cat test/diskadditionpre.yaml

---

<div class="post-metadata">

**Author:** ![Dineshbabu\_Shankar](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@Dineshbabu\_Shankar](https://forum.ansible.com/u/Dineshbabu_Shankar)\
**Post date:** [October 14, 2021, 7:22am UTC](https://forum.ansible.com/t/help-me-to-achive-this-task/35854/2 "2021-10-14T07:22:03Z")

</div>

Can any one help me on this

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [October 14, 2021, 9:39am UTC](https://forum.ansible.com/t/help-me-to-achive-this-task/35854/3 "2021-10-14T09:39:00Z")

</div>

> Can any one help me on this

Please define "not working".

Regards

```
          Racke

```
