From f73bd7e46ead382194db060280886b1b973395b8 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 28 May 2024 08:43:21 +0200 Subject: [PATCH] bitwarden --- playbooks/mailu_switch_to_second.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/playbooks/mailu_switch_to_second.yaml b/playbooks/mailu_switch_to_second.yaml index 56828b9..2b50d0d 100644 --- a/playbooks/mailu_switch_to_second.yaml +++ b/playbooks/mailu_switch_to_second.yaml @@ -45,19 +45,13 @@ msg: "var is {{ NEW_IP }}" when: inventory_hostname in groups['router'] - - - set_fact: - app_path2: "{{ ruleset.stdout }}" - when: inventory_hostname in groups['router'] - - - name: initialize variables set_fact: regexp: "\\g<1>{{ NEW_IP }}\\3" when: inventory_hostname in groups['router'] - set_fact: - app_path: "{{ app_path2 | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', regexp) | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', regexp) }}" + app_path: "{{ ruleset.stdout | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', regexp) | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', regexp) }}" when: inventory_hostname in groups['router']