From b1128baaaa9e36b71294044cae663cbe773cd8b8 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 28 May 2024 01:20:19 +0200 Subject: [PATCH] bitwarden --- playbooks/mailu_switch_to_second.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/mailu_switch_to_second.yaml b/playbooks/mailu_switch_to_second.yaml index 41eaead..a5b2537 100644 --- a/playbooks/mailu_switch_to_second.yaml +++ b/playbooks/mailu_switch_to_second.yaml @@ -3,7 +3,7 @@ ignore_unreachable: false vars: - app_path: "25,143,465,993,995,587>192.168.77.106>dsadsad dsad dasdas-ddasd>TCP>443,80>192.168.77.106>>TCP>" + #app_path: "25,143,465,993,995,587>192.168.77.106>dsadsad dsad dasdas-ddasd>TCP>443,80>192.168.77.106>>TCP>" NEW_IP: 192.168.77.238 arch_name: docker_mailu2_data containers: @@ -47,7 +47,7 @@ app_path2: "{{ ruleset.stdout }}" when: inventory_hostname in groups['router'] - set_fact: - app_path: "{{ app_path | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', '\\1{{ NEW_IP }}\\3') | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', '\\1{{ NEW_IP }}\\3') }}" + app_path: "{{ app_path2 | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', '\\1{{ NEW_IP }}\\3') | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', '\\1{{ NEW_IP }}\\3') }}" when: inventory_hostname in groups['router'] - name: Print the gateway for each host when defined ansible.builtin.debug: