From 9f56d13aad46f10989b1302c1f8ec43b8561b749 Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 3 Jun 2024 00:38:40 +0200 Subject: [PATCH] bitwarden --- playbooks/test_replace.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/playbooks/test_replace.yml b/playbooks/test_replace.yml index 83cd8da..be3d73e 100644 --- a/playbooks/test_replace.yml +++ b/playbooks/test_replace.yml @@ -1,9 +1,6 @@ - hosts: router - name: Sync mailu + name: Switch destination 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>" - new_ip_dest: "192.168.77.238" tasks: - name: Get ruleset command: nvram get vts_rulelist @@ -14,7 +11,7 @@ msg: "var is {{ ruleset.stdout }}" - name: initialize variables set_fact: - regexp: "\\g<1>{{ new_ip_dest }}\\3" + regexp: "\\g<1>{{ DESTINATION }}\\3" - set_fact: 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) }}" - name: Print the gateway for each host when defined