blob: 42e7903fde0231fd44d628c6510a65b5d5d77379 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
---
- name: Ensure growpart is installed
yum: pkg=cloud-utils-growpart state=present
when: ansible_pkg_mgr == "yum"
- name: Ensure growpart is installed
dnf: pkg=cloud-utils-growpart state=present
when: ansible_pkg_mgr == "dnf"
- 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"
|