diff --git a/roles/httpd/reverseproxy/tasks/main.yml b/roles/httpd/reverseproxy/tasks/main.yml index 7c4bb40f4d..d3e1324034 100644 --- a/roles/httpd/reverseproxy/tasks/main.yml +++ b/roles/httpd/reverseproxy/tasks/main.yml @@ -10,7 +10,7 @@ - name: Set OpenShift information if not preconfigured (prod) set_fact: balancer_members: "{{ openshift_nodes }}" - when: 'targettype == "openshift" and not balancer_members is defined and env != "staging" ' + when: 'targettype == "openshift" and balancer_members is not defined and env != "staging" ' tags: - httpd - httpd/reverseproxy @@ -19,7 +19,7 @@ - name: Set OpenShift4 information if not preconfigured (prod) set_fact: balancer_members: "{{ ocp_nodes }}" - when: 'targettype == "openshift" and ocp4|bool and not balancer_members is defined and env != "staging" ' + when: 'targettype == "openshift" and ocp4|bool and balancer_members is not defined and env != "staging" ' tags: - httpd - httpd/reverseproxy @@ -28,7 +28,7 @@ - name: Set OpenShift information if not preconfigured (stg) set_fact: balancer_members: "{{ openshift_nodes_stg }}" - when: 'targettype == "openshift" and not balancer_members is defined and env == "staging" ' + when: 'targettype == "openshift" and balancer_members is not defined and env == "staging" ' tags: - httpd - httpd/reverseproxy @@ -37,7 +37,7 @@ - name: Set OpenShift4 information if not preconfigured (stg) set_fact: balancer_members: "{{ ocp_nodes_stg }}" - when: 'targettype == "openshift" and ocp4|bool and not balancer_members is defined and env == "staging" ' + when: 'targettype == "openshift" and ocp4|bool and balancer_members is not defined and env == "staging" ' tags: - httpd - httpd/reverseproxy