blob: 8bc3990708f7192aa202e99d88e139bddb5eabd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
---
- name: Ensure growpart is installed
yum: pkg=cloud-utils-growpart state=present
- name: Grow the partitions
command: "growpart {{oep_drive}} {{oep_partition}}"
- name: Expand the filesystem - xfs
command: "xfs_growfs {{oep_drive}}{{oep_partition}}"
when: oep_file_system == "xfs"
- name: Expand the filesystem - ext(2,3,4)
command: "resize2fs {{oep_drive}}{{oep_partition}}"
when: oep_file_system == "ext"
|