fix reverse_proxy_bug

This commit is contained in:
uumas
2022-05-13 23:24:58 +03:00
parent 2b5d0c8534
commit e09cd8a699
2 changed files with 3 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
namespace: uumas
name: general
version: 0.5.2
version: 0.5.3
readme: README.md
authors:
- uumas

View File

@@ -4,7 +4,9 @@
- name: Split legacy proxy_target to protocol, host and port
set_fact:
proxy_target_split_protocol: "{{ proxy_target.split('://') }}"
- set_fact:
proxy_target_split_host: "{{ (proxy_target_split_protocol | last).split(':') }}"
- set_fact:
proxy_target_host: "{{ proxy_target_split_host[0] }}"
proxy_target_port: "{{ proxy_target_split_host[1] }}"