summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts
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_facts
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_facts')
-rw-r--r--roles/openshift_facts/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_facts/tasks/main.yml b/roles/openshift_facts/tasks/main.yml
index 913f0dc78..2e889d7d5 100644
--- a/roles/openshift_facts/tasks/main.yml
+++ b/roles/openshift_facts/tasks/main.yml
@@ -8,6 +8,13 @@
- name: Ensure PyYaml is installed
yum: pkg={{ item }} state=installed
+ when: ansible_pkg_mgr == "yum"
+ with_items:
+ - PyYAML
+
+- name: Ensure PyYaml is installed
+ dnf: pkg={{ item }} state=installed
+ when: ansible_pkg_mgr == "dnf"
with_items:
- PyYAML