proxies / reverseproxy: try some different logic

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-06-05 09:30:58 -07:00
parent 07385d35ed
commit 0e1d9f6ea7

View file

@ -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