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
278089a49d
commit
1d15ea4499
@ -41,7 +41,7 @@
|
|||||||
# #- 140
|
# #- 140
|
||||||
# - 180
|
# - 180
|
||||||
- name: Start mailu containers
|
- name: Start mailu containers
|
||||||
command: "docker restart {{ containers | join(' ') }}"
|
command: "docker start {{ containers | join(' ') }}"
|
||||||
become: true
|
become: true
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
when: inventory_hostname in groups['raspberrypi5']
|
when: inventory_hostname in groups['raspberrypi5']
|
||||||
@ -53,7 +53,11 @@
|
|||||||
|
|
||||||
- name: Print the gateway for each host when defined
|
- name: Print the gateway for each host when defined
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "var is {{ ruleset }}"
|
msg: "var is {{ ruleset.stdout }}"
|
||||||
|
when: inventory_hostname in groups['router']
|
||||||
|
- name: Print the gateway for each host when defined
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "var is {{ NEW_IP }}"
|
||||||
when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
- 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\\>)', '\\1{{ NEW_IP }}\\3') | regex_replace('(\\<WEB_SERVER\\>[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', '\\1{{ NEW_IP }}\\3') }}"
|
app_path: "{{ ruleset.stdout | regex_replace('(\\<MAIL_SERVER\\>[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', '\\1{{ NEW_IP }}\\3') | regex_replace('(\\<WEB_SERVER\\>[0-9,]{1,}\\>)([0-9.]{1,})(\\>[0-9a-zA-Z\\s-]{0,}\\>TCP\\>)', '\\1{{ NEW_IP }}\\3') }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user