summaryrefslogtreecommitdiffstats
path: root/roles/openshift_expand_partition/tasks
diff options
context:
space:
mode:
authorTroy Dawson <tdawson@redhat.com>2015-06-24 17:54:23 -0500
committerTroy Dawson <tdawson@redhat.com>2015-06-24 17:54:23 -0500
commit9e05538cbfd593198b176b4fd4b8d0473a7f3a43 (patch)
tree468d1155ea99785252f3a6103a6c6069e704a158 /roles/openshift_expand_partition/tasks
parent3ab174fe4e0d9a6d300890bcfcaaa346181f8ec9 (diff)
downloadopenshift-9e05538cbfd593198b176b4fd4b8d0473a7f3a43.tar.gz
openshift-9e05538cbfd593198b176b4fd4b8d0473a7f3a43.tar.bz2
openshift-9e05538cbfd593198b176b4fd4b8d0473a7f3a43.tar.xz
openshift-9e05538cbfd593198b176b4fd4b8d0473a7f3a43.zip
Creating openshift_expand_partition
Diffstat (limited to 'roles/openshift_expand_partition/tasks')
-rw-r--r--roles/openshift_expand_partition/tasks/main.yml14
1 files changed, 14 insertions, 0 deletions
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"