mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
bitwarden
This commit is contained in:
parent
01b9e06d51
commit
9f56d13aad
@ -1,9 +1,6 @@
|
|||||||
- hosts: router
|
- hosts: router
|
||||||
name: Sync mailu
|
name: Switch destination
|
||||||
ignore_unreachable: false
|
ignore_unreachable: false
|
||||||
vars:
|
|
||||||
app_path: "<MAIL_SERVER>25,143,465,993,995,587>192.168.77.106>dsadsad dsad dasdas-ddasd>TCP><WEB_SERVER>443,80>192.168.77.106>>TCP>"
|
|
||||||
new_ip_dest: "192.168.77.238"
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Get ruleset
|
- name: Get ruleset
|
||||||
command: nvram get vts_rulelist
|
command: nvram get vts_rulelist
|
||||||
@ -14,7 +11,7 @@
|
|||||||
msg: "var is {{ ruleset.stdout }}"
|
msg: "var is {{ ruleset.stdout }}"
|
||||||
- name: initialize variables
|
- name: initialize variables
|
||||||
set_fact:
|
set_fact:
|
||||||
regexp: "\\g<1>{{ new_ip_dest }}\\3"
|
regexp: "\\g<1>{{ DESTINATION }}\\3"
|
||||||
- set_fact:
|
- set_fact:
|
||||||
app_path: "{{ ruleset.stdout | regex_replace('(\\<MAIL_SERVER\\>[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', regexp) | regex_replace('(\\<WEB_SERVER\\>[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', regexp) }}"
|
app_path: "{{ ruleset.stdout | regex_replace('(\\<MAIL_SERVER\\>[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', regexp) | regex_replace('(\\<WEB_SERVER\\>[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', regexp) }}"
|
||||||
- name: Print the gateway for each host when defined
|
- name: Print the gateway for each host when defined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user