bitwarden

This commit is contained in:
jaydee 2024-05-28 01:09:07 +02:00
parent 278089a49d
commit 1d15ea4499

View File

@ -41,7 +41,7 @@
# #- 140
# - 180
- name: Start mailu containers
command: "docker restart {{ containers | join(' ') }}"
command: "docker start {{ containers | join(' ') }}"
become: true
ignore_errors: true
when: inventory_hostname in groups['raspberrypi5']
@ -53,7 +53,11 @@
- name: Print the gateway for each host when defined
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']
- 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') }}"