Bläddra i källkod

Merge pull request #4384 from admiyo/guard-container

Merged by openshift-bot
OpenShift Bot 7 år sedan
förälder
incheckning
3662056738
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      playbooks/common/openshift-node/config.yml

+ 1 - 1
playbooks/common/openshift-node/config.yml

@@ -32,7 +32,7 @@
       ansible_ssh_user: "{{ g_ssh_user | default(omit) }}"
       ansible_become: "{{ g_sudo | default(omit) }}"
     with_items: "{{ groups.oo_nodes_to_config | default([]) }}"
-    when: hostvars[item].openshift.common is defined and hostvars[item].openshift.common.is_containerized | bool and (item in groups.oo_nodes_to_config and item in groups.oo_masters_to_config)
+    when: hostvars[item].openshift is defined and hostvars[item].openshift.common is defined and hostvars[item].openshift.common.is_containerized | bool and (item in groups.oo_nodes_to_config and item in groups.oo_masters_to_config)
     changed_when: False
 
 - name: Configure containerized nodes