# mount volumes based on size

**URL:** <https://forum.ansible.com/t/mount-volumes-based-on-size/20551>\
**Category:** Ansible Project\
**Created:** [February 11, 2016, 9:33pm UTC](https://forum.ansible.com/t/mount-volumes-based-on-size/20551 "2016-02-11T21:33:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Govindaraj\_Venkatesa](https://avatars.discourse-cdn.com/v4/letter/g/a698b9/32.png) [@Govindaraj\_Venkatesa](https://forum.ansible.com/u/Govindaraj_Venkatesa)\
**Post date:** [February 11, 2016, 9:33pm UTC](https://forum.ansible.com/t/mount-volumes-based-on-size/20551/1 "2016-02-11T21:33:08Z")

</div>

Hi All,

Currently we are mounting the volume as below

- name: mkfs the volume  
filesystem: fstype=ext4 dev=/dev/vdb  
tags: mount\_zookeeper\_fs

is there a way we can mount volumes based on the size? sometimes our dev=/dev/vdb changes and is not constant. But the size remains the same.

Thanks,  
Govind
