blob: 84d859553c8848b003e35ed530fb110103523d34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
---
- name: Ensure growpart is installed
action: "{{ ansible_pkg_mgr }} name=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"
|