summaryrefslogtreecommitdiffstats
path: root/roles/openshift_common
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-07-07 12:28:28 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-07-07 12:28:28 -0300
commitc1728c8847177988e4532b9c9c777e1a23223410 (patch)
tree088f54441da3f49d6d4f9b4464072e19db886f2e /roles/openshift_common
parent76829048f7b529f0932bb99d96a774244329291a (diff)
downloadopenshift-c1728c8847177988e4532b9c9c777e1a23223410.tar.gz
openshift-c1728c8847177988e4532b9c9c777e1a23223410.tar.bz2
openshift-c1728c8847177988e4532b9c9c777e1a23223410.tar.xz
openshift-c1728c8847177988e4532b9c9c777e1a23223410.zip
Move repoquery fact definition to openshift_common.
Diffstat (limited to 'roles/openshift_common')
-rw-r--r--roles/openshift_common/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/openshift_common/tasks/main.yml b/roles/openshift_common/tasks/main.yml
index 77f3811c1..afddef125 100644
--- a/roles/openshift_common/tasks/main.yml
+++ b/roles/openshift_common/tasks/main.yml
@@ -45,3 +45,8 @@
command: >
hostnamectl set-hostname {{ openshift.common.hostname }}
when: openshift_set_hostname | default(set_hostname_default) | bool
+
+- name: Set repoquery command
+ set_fact:
+ repoquery_cmd: "{{ 'dnf repoquery --latest-limit 1 -d 0' if ansible_pkg_mgr == 'dnf' else 'repoquery --plugins' }}"
+