summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-10-03 10:12:39 -0400
committerMichael Gugino <mgugino@redhat.com>2017-10-03 10:12:39 -0400
commit2c9760da2857245eee9df0700b7aba1b7c06270d (patch)
tree3540ff4c4d46013f27a93b40a9db490085762c63 /playbooks
parent137e348d4ed1bf3561514009389ae72015d30c8d (diff)
downloadopenshift-2c9760da2857245eee9df0700b7aba1b7c06270d.tar.gz
openshift-2c9760da2857245eee9df0700b7aba1b7c06270d.tar.bz2
openshift-2c9760da2857245eee9df0700b7aba1b7c06270d.tar.xz
openshift-2c9760da2857245eee9df0700b7aba1b7c06270d.zip
Limit hosts that run openshift_version role
Currently, the openshift_version role is run against the oo_all_hosts group. This causes the dependencies, such as openshift_docker and docker, to be run against host groups that were not intended, such as nfs. This commit explicitly limits the openshift_version role to run only against masters, nodes, and etcd host groups. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1497144
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-cluster/initialize_openshift_version.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/common/openshift-cluster/initialize_openshift_version.yml b/playbooks/common/openshift-cluster/initialize_openshift_version.yml
index 1b186f181..fe3fe5059 100644
--- a/playbooks/common/openshift-cluster/initialize_openshift_version.yml
+++ b/playbooks/common/openshift-cluster/initialize_openshift_version.yml
@@ -16,8 +16,8 @@
# NOTE: We set this even on etcd hosts as they may also later run as masters,
# and we don't want to install wrong version of docker and have to downgrade
# later.
-- name: Set openshift_version for all hosts
- hosts: oo_all_hosts:!oo_first_master
+- name: Set openshift_version for etcd, node, and master hosts
+ hosts: oo_etcd_to_config:oo_nodes_to_config:oo_masters_to_config:!oo_first_master
vars:
openshift_version: "{{ hostvars[groups.oo_first_master.0].openshift_version }}"
pre_tasks: