Use ansible 'filesystem' module to resize filesystem

This commit is contained in:
Charlie O'Keefe 2018-03-21 10:27:21 -06:00
parent 970a0f1b9c
commit 656382c7bb
1 changed files with 4 additions and 3 deletions

View File

@ -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