proxies / reverseproxy: try just always setting balancer_members and dropping the set facts

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-06-05 11:47:17 -07:00
parent 7e90378b30
commit 42bc4ea41a
2 changed files with 13 additions and 40 deletions

View file

@ -7,42 +7,6 @@
# - keephost
# - proxyopts
- name: Set OpenShift information if not preconfigured (prod)
set_fact:
balancer_members: "{{ openshift_nodes }}"
when: 'targettype == "openshift" and balancer_members is not defined and env != "staging" '
tags:
- httpd
- httpd/reverseproxy
- httpd/reversepassproxy
- name: Set OpenShift4 information if not preconfigured (prod)
set_fact:
balancer_members: "{{ ocp_nodes }}"
when: 'targettype == "openshift" and ocp4|bool and balancer_members is not defined and env != "staging" '
tags:
- httpd
- httpd/reverseproxy
- httpd/reversepassproxy
- name: Set OpenShift information if not preconfigured (stg)
set_fact:
balancer_members: "{{ openshift_nodes_stg }}"
when: 'targettype == "openshift" and balancer_members is not defined and env == "staging" '
tags:
- httpd
- httpd/reverseproxy
- httpd/reversepassproxy
- name: Set OpenShift4 information if not preconfigured (stg)
set_fact:
balancer_members: "{{ ocp_nodes_stg }}"
when: 'targettype == "openshift" and ocp4|bool and balancer_members is not defined and env == "staging" '
tags:
- httpd
- httpd/reverseproxy
- httpd/reversepassproxy
- name: Copy in ProxyPassReverse for {{destname}} ({{website}}{{remotepath}})
template: >
src={{item}}
@ -59,7 +23,3 @@
- httpd
- httpd/reverseproxy
- httpd/reversepassproxy
- name: clear balancer_members
set_fact:
balancer_members: !!null