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