Jelajahi Sumber

Merge pull request #4384 from admiyo/guard-container

Merged by openshift-bot
OpenShift Bot 7 tahun lalu
induk
melakukan
3662056738
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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_ssh_user: "{{ g_ssh_user | default(omit) }}"
       ansible_become: "{{ g_sudo | default(omit) }}"
       ansible_become: "{{ g_sudo | default(omit) }}"
     with_items: "{{ groups.oo_nodes_to_config | default([]) }}"
     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
     changed_when: False
 
 
 - name: Configure containerized nodes
 - name: Configure containerized nodes