Files
fedora-infra_ansible/roles/httpd/reverseproxy/tasks/main.yml
Frank Ch. Eigler c37d51d236 proxies/debuginfod: allow proxyopts
debuginfod can take O(60s) to run certain webapi queries, so the httpd
mod_proxy default timeouts are too short.  Introduce an ansible
variable "proxyopts", expanded into the httpd ProxyPass and
ProxyPassReverse configuration lines.  Default to "", but set it
with pretty generous limits for debuginfod only.
2021-04-08 20:58:52 +00:00

35 lines
866 B
YAML

# Expected vars
# - website...
# - localpath..
# - remotepath..
# - proxyurl
# - rewrite
# - keephost
# - proxyopts
- name: Set OpenShift information if not preconfigured
set_fact:
balancer_members: "{{ openshift_nodes }}"
when: 'targettype == "openshift" and not balancer_members is defined'
tags:
- httpd
- httpd/reverseproxy
- httpd/reversepassproxy
- name: Copy in ProxyPassReverse for {{destname}} ({{website}}{{remotepath}})
template: >
src={{item}}
dest=/etc/httpd/conf.d/{{website}}/{{destname}}.conf
owner=root
group=root
mode=0644
with_first_found:
- "{{ roles_path }}/httpd/reverseproxy/templates/reversepassproxy.{{destname}}.conf"
- "{{ roles_path }}/httpd/reverseproxy/templates/reversepassproxy.conf"
notify:
- reload proxyhttpd
tags:
- httpd
- httpd/reverseproxy
- httpd/reversepassproxy