Use ansible 'filesystem' module to resize filesystem
This commit is contained in:
parent
970a0f1b9c
commit
656382c7bb
|
@ -36,6 +36,7 @@
|
||||||
register: parted_resize
|
register: parted_resize
|
||||||
|
|
||||||
- name: Resize filesystem on /dev/sda1 to fill the available space on the partition
|
- name: Resize filesystem on /dev/sda1 to fill the available space on the partition
|
||||||
command: resize2fs /dev/sda1
|
filesystem:
|
||||||
become: yes
|
dev: /dev/sda1
|
||||||
register: resize2fs
|
fstype: ext4
|
||||||
|
resizefs: true
|
||||||
|
|
Loading…
Reference in New Issue