From 9e05538cbfd593198b176b4fd4b8d0473a7f3a43 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 24 Jun 2015 17:54:23 -0500 Subject: Creating openshift_expand_partition --- roles/openshift_expand_partition/tasks/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 roles/openshift_expand_partition/tasks/main.yml (limited to 'roles/openshift_expand_partition/tasks/main.yml') diff --git a/roles/openshift_expand_partition/tasks/main.yml b/roles/openshift_expand_partition/tasks/main.yml new file mode 100644 index 000000000..8bc399070 --- /dev/null +++ b/roles/openshift_expand_partition/tasks/main.yml @@ -0,0 +1,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" -- cgit v1.2.3