summaryrefslogtreecommitdiffstats
path: root/roles/openshift_expand_partition
diff options
context:
space:
mode:
authorWesley Hearn <wesley.s.hearn@gmail.com>2015-12-02 16:23:36 -0500
committerWesley Hearn <wesley.s.hearn@gmail.com>2015-12-02 16:23:36 -0500
commitf7835bc727bb2a290ebc42be9e16f3d775b2588b (patch)
treee40313defb290c23963d0abddd212b951c354baa /roles/openshift_expand_partition
parente14da724f79e1fd75aea03bfab2179c7ef42c3e6 (diff)
parentaf009a7a51d7b6f5799a14c452cc7db92727135e (diff)
downloadopenshift-f7835bc727bb2a290ebc42be9e16f3d775b2588b.tar.gz
openshift-f7835bc727bb2a290ebc42be9e16f3d775b2588b.tar.bz2
openshift-f7835bc727bb2a290ebc42be9e16f3d775b2588b.tar.xz
openshift-f7835bc727bb2a290ebc42be9e16f3d775b2588b.zip
Merge pull request #966 from maxamillion/fedora
Fedora changes:
Diffstat (limited to 'roles/openshift_expand_partition')
-rw-r--r--roles/openshift_expand_partition/README.md2
-rw-r--r--roles/openshift_expand_partition/tasks/main.yml5
2 files changed, 6 insertions, 1 deletions
diff --git a/roles/openshift_expand_partition/README.md b/roles/openshift_expand_partition/README.md
index cd394e1ba..aed4ec871 100644
--- a/roles/openshift_expand_partition/README.md
+++ b/roles/openshift_expand_partition/README.md
@@ -8,7 +8,7 @@ partition, and then expanding the file system on the partition.
* A machine with a disk that is not fully utilized
-* cloud-utils-growpart rpm (either installed or avialable via yum)
+* cloud-utils-growpart rpm (either installed or avialable via yum or dnf)
* The partition you are expanding needs to be at the end of the partition list
diff --git a/roles/openshift_expand_partition/tasks/main.yml b/roles/openshift_expand_partition/tasks/main.yml
index 8bc399070..42e7903fd 100644
--- a/roles/openshift_expand_partition/tasks/main.yml
+++ b/roles/openshift_expand_partition/tasks/main.yml
@@ -1,6 +1,11 @@
---
- 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}}"