diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2016-05-30 11:52:48 -0300 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2016-05-30 12:40:38 -0300 |
commit | 265daf6b65206fc17ad35e682640477d08efbc43 (patch) | |
tree | 00ab31be599ac56a78121366a76c04fc42d13629 /roles/openshift_cli | |
parent | 3f7ac81838d0cef4ea95505abf82be7e114ae415 (diff) | |
download | openshift-265daf6b65206fc17ad35e682640477d08efbc43.tar.gz openshift-265daf6b65206fc17ad35e682640477d08efbc43.tar.bz2 openshift-265daf6b65206fc17ad35e682640477d08efbc43.tar.xz openshift-265daf6b65206fc17ad35e682640477d08efbc43.zip |
Refactor openshift_version behavior.
Very early in playbooks we must init the openshift_version for each
host. First we determine it for the master, logic now is pushed into the
openshift_docker role which we run only on first master via
openshift_cli. Facts are reloaded leaving us with a first master with
openshift.common.version fact we can then re-use on all other hosts. The
correct version of docker should be installed as well.
We then set openshift_version for all other hosts by re-using the master
fact.
Diffstat (limited to 'roles/openshift_cli')
-rw-r--r-- | roles/openshift_cli/tasks/main.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_cli/tasks/main.yml b/roles/openshift_cli/tasks/main.yml index 8679407dc..fe6672a47 100644 --- a/roles/openshift_cli/tasks/main.yml +++ b/roles/openshift_cli/tasks/main.yml @@ -29,3 +29,7 @@ - /usr/local/bin/oc - /usr/local/bin/kubectl when: openshift.common.is_containerized | bool + +- name: Reload facts to pick up installed OpenShift version + openshift_facts: + |