diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2016-07-07 12:28:28 -0300 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2016-07-07 12:28:28 -0300 |
commit | c1728c8847177988e4532b9c9c777e1a23223410 (patch) | |
tree | 088f54441da3f49d6d4f9b4464072e19db886f2e /roles | |
parent | 76829048f7b529f0932bb99d96a774244329291a (diff) | |
download | openshift-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')
-rw-r--r-- | roles/openshift_common/tasks/main.yml | 5 |
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' }}" + |