# Input on module to resize filesystems.

**URL:** <https://forum.ansible.com/t/input-on-module-to-resize-filesystems/15676>\
**Category:** Ansible Project\
**Created:** [July 15, 2014, 12:25pm UTC](https://forum.ansible.com/t/input-on-module-to-resize-filesystems/15676 "2014-07-15T12:25:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![C\_Morgan\_Hamill](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@C\_Morgan\_Hamill](https://forum.ansible.com/u/C_Morgan_Hamill)\
**Post date:** [July 15, 2014, 12:25pm UTC](https://forum.ansible.com/t/input-on-module-to-resize-filesystems/15676/1 "2014-07-15T12:25:22Z")

</div>

I have need of this.

Should I add this ability to the existing `filesystem` module, or do  
folks think it ought to be a separate module?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [July 15, 2014, 3:37pm UTC](https://forum.ansible.com/t/input-on-module-to-resize-filesystems/15676/2 "2014-07-15T15:37:33Z")

</div>

Can you share more about what the proposed syntax might be for this flag (such as an example playbook line?)

---

<div class="post-metadata">

**Author:** ![C\_Morgan\_Hamill](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@C\_Morgan\_Hamill](https://forum.ansible.com/u/C_Morgan_Hamill)\
**Post date:** [July 15, 2014, 5:16pm UTC](https://forum.ansible.com/t/input-on-module-to-resize-filesystems/15676/3 "2014-07-15T17:16:07Z")

</div>

Excerpts from Michael DeHaan's message of 2014-07-15 11:37:33 -0400:

> Can you share more about what the proposed syntax might be for this flag  
> (such as an example playbook line?)

That's actually where I run into trouble; the filesystem module's  
arguments and their semantics don't leave a lot of room for extending.

Currently, the filesystem module will create a filesystem if none  
exists, or create filesystem unconditionally when force=yes.

I could imagine changing the behavior by adding a 'size' parameter, so  
that one could do the following:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [July 16, 2014, 9:01pm UTC](https://forum.ansible.com/t/input-on-module-to-resize-filesystems/15676/4 "2014-07-16T21:01:30Z")

</div>

I think I might favor resize=yes|no default no.
