From 94df1b930cc307e8fc0c76015321664cf9e0b397 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 28 May 2024 00:37:28 +0200 Subject: [PATCH] bitwarden --- playbooks/test_replace.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/test_replace.yml b/playbooks/test_replace.yml index 439ff83..4cac4c0 100644 --- a/playbooks/test_replace.yml +++ b/playbooks/test_replace.yml @@ -3,12 +3,13 @@ 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: 192.168.77.238 tasks: - name: Print the gateway for each host when defined ansible.builtin.debug: msg: "var is {{ app_path }}" - set_fact: - app_path: "{{ app_path | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', '\\1dasdasdsad\\3') | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', '\\1ddadada\\3') }}" + app_path: "{{ app_path | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', '\\1dasdasdsad\\3') | regex_replace('(\\[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', '\\1{{ NEW_IP }}\\3') }}" - name: Print the gateway for each host when defined ansible.builtin.debug: msg: "var is {{ app_path }}" \ No newline at end of file