Deprecate reverse_proxy role as all functionality is available in vhost

This commit is contained in:
uumas
2022-11-18 05:38:40 +02:00
parent 3974e6eb46
commit e27c8e8cf3
6 changed files with 16 additions and 32 deletions

View File

@@ -1,5 +1,9 @@
---
- name: Deprecation warning
debug:
msg: "uumas.general.reverse_proxy is deprecated. You should switch to uumas.general.vhost with vhost_type: reverse_proxy"
- block:
- name: Split legacy proxy_target to protocol, host and port
set_fact:
@@ -17,6 +21,9 @@
when: proxy_target is defined and proxy_target_port is not defined
- name: Setup {{ vhost_id }} reverse proxy
include_tasks: "{{ reverse_proxy_type }}.yml"
when: reverse_proxy_type != 'none'
- name: configure vhost for reverse proxy
include_role:
name: vhost
vars:
vhost_type: reverse_proxy