summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/defaults
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-12-19 15:36:57 -0500
committerMichael Gugino <mgugino@redhat.com>2017-12-20 15:34:05 -0500
commitedde00af6a5b811468fe2a0e9bff45346103be92 (patch)
treecd5622c911972d06732a2986856c6ffe47b34ceb /roles/openshift_facts/defaults
parent5faaf9cd1e48864b3ff93276f4b1015b297d0b06 (diff)
downloadopenshift-edde00af6a5b811468fe2a0e9bff45346103be92.tar.gz
openshift-edde00af6a5b811468fe2a0e9bff45346103be92.tar.bz2
openshift-edde00af6a5b811468fe2a0e9bff45346103be92.tar.xz
openshift-edde00af6a5b811468fe2a0e9bff45346103be92.zip
Move validate_hosts to prerequisites.yml
Move more checks outside of init/main.yml for speeding up upgrades and other operational plays that need to run.
Diffstat (limited to 'roles/openshift_facts/defaults')
-rw-r--r--roles/openshift_facts/defaults/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/openshift_facts/defaults/main.yml b/roles/openshift_facts/defaults/main.yml
index af0a72737..a4252afb0 100644
--- a/roles/openshift_facts/defaults/main.yml
+++ b/roles/openshift_facts/defaults/main.yml
@@ -5,6 +5,9 @@ openshift_cli_image_dict:
origin: 'openshift/origin'
openshift-enterprise: 'openshift3/ose'
+repoquery_cmd: "{{ ansible_pkg_mgr == 'dnf' | ternary('dnf repoquery --latest-limit 1 -d 0', 'repoquery --plugins') }}"
+repoquery_installed: "{{ ansible_pkg_mgr == 'dnf' | ternary('dnf repoquery --latest-limit 1 -d 0 --disableexcludes=all --installed', 'repoquery --plugins --installed') }}"
+
openshift_hosted_images_dict:
origin: 'openshift/origin-${component}:${version}'
openshift-enterprise: 'openshift3/ose-${component}:${version}'