summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-07-11 16:27:59 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-07-11 16:27:59 -0300
commitb9d00cb5bf5d81b6c94e08a67021c32f3239103c (patch)
tree29d544bfe10ae217b8ae24a4268ce40814ac3359 /roles
parent02fde33acd3022b1a684c3aaa42b4d2052d1c830 (diff)
downloadopenshift-b9d00cb5bf5d81b6c94e08a67021c32f3239103c.tar.gz
openshift-b9d00cb5bf5d81b6c94e08a67021c32f3239103c.tar.bz2
openshift-b9d00cb5bf5d81b6c94e08a67021c32f3239103c.tar.xz
openshift-b9d00cb5bf5d81b6c94e08a67021c32f3239103c.zip
Move repoquery_cmd fact setting into a more logical place.
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_common/tasks/main.yml4
-rw-r--r--roles/openshift_facts/tasks/main.yml5
2 files changed, 5 insertions, 4 deletions
diff --git a/roles/openshift_common/tasks/main.yml b/roles/openshift_common/tasks/main.yml
index afddef125..ece335fbf 100644
--- a/roles/openshift_common/tasks/main.yml
+++ b/roles/openshift_common/tasks/main.yml
@@ -46,7 +46,3 @@
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' }}"
-
diff --git a/roles/openshift_facts/tasks/main.yml b/roles/openshift_facts/tasks/main.yml
index ca1a9b1e4..c3723672d 100644
--- a/roles/openshift_facts/tasks/main.yml
+++ b/roles/openshift_facts/tasks/main.yml
@@ -41,3 +41,8 @@
no_proxy: "{{ openshift_no_proxy | default(None) }}"
generate_no_proxy_hosts: "{{ openshift_generate_no_proxy_hosts | default(True) }}"
no_proxy_internal_hostnames: "{{ openshift_no_proxy_internal_hostnames | default(None) }}"
+
+- name: Set repoquery command
+ set_fact:
+ repoquery_cmd: "{{ 'dnf repoquery --latest-limit 1 -d 0' if ansible_pkg_mgr == 'dnf' else 'repoquery --plugins' }}"
+