summaryrefslogtreecommitdiffstats
path: root/playbooks/container-runtime/private/config.yml
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-12-21 12:09:17 -0500
committerMichael Gugino <mgugino@redhat.com>2017-12-21 13:17:53 -0500
commit3a14ee697aafa52d94ce577c16378c5fe18dda06 (patch)
tree22f08f765c3ef8fb3b07bd1c6be817986c794376 /playbooks/container-runtime/private/config.yml
parentcbcfd8a6d669e5b76afca79d3523bc537df804d3 (diff)
downloadopenshift-3a14ee697aafa52d94ce577c16378c5fe18dda06.tar.gz
openshift-3a14ee697aafa52d94ce577c16378c5fe18dda06.tar.bz2
openshift-3a14ee697aafa52d94ce577c16378c5fe18dda06.tar.xz
openshift-3a14ee697aafa52d94ce577c16378c5fe18dda06.zip
Fix container_runtime openshift_containerized_host_groups
openshift_containerized_host_groups needs to be referenced via hostvars. This commit also updates tox ansible syntax checks to account for unavailability of hostsvars during syntax checks. Fixes: https://github.com/openshift/openshift-ansible/issues/6540
Diffstat (limited to 'playbooks/container-runtime/private/config.yml')
-rw-r--r--playbooks/container-runtime/private/config.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/container-runtime/private/config.yml b/playbooks/container-runtime/private/config.yml
index 67445edeb..d8fc93710 100644
--- a/playbooks/container-runtime/private/config.yml
+++ b/playbooks/container-runtime/private/config.yml
@@ -1,7 +1,7 @@
---
- hosts: "{{ l_containerized_host_groups }}"
vars:
- l_chg_temp: "{{ openshift_containerized_host_groups | default([]) }}"
+ l_chg_temp: "{{ hostvars[groups['oo_first_master'][0]]['openshift_containerized_host_groups'] | default([]) }}"
l_containerized_host_groups: "{{ (['oo_nodes_to_config'] | union(l_chg_temp)) | join(':') }}"
# role: container_runtime is necessary here to bring role default variables
# into the play scope.