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
1d15ea4499
commit
68f50e325f
@ -23,23 +23,6 @@
|
|||||||
- HomeAssistant
|
- HomeAssistant
|
||||||
- mosquitto-mosquitto-1
|
- mosquitto-mosquitto-1
|
||||||
tasks:
|
tasks:
|
||||||
# - name: Start mailu rasp
|
|
||||||
# uri:
|
|
||||||
# url: "http://192.168.77.106:9000/api/stacks/{{ item }}/start?endpointId=13"
|
|
||||||
# method: POST
|
|
||||||
# body_format: form-urlencoded
|
|
||||||
# return_content: yes
|
|
||||||
# headers:
|
|
||||||
# Content-Type: "application/json"
|
|
||||||
# X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
|
||||||
# timeout: 60
|
|
||||||
# ignore_errors: yes
|
|
||||||
# when: inventory_hostname in groups['nas']
|
|
||||||
# loop:
|
|
||||||
# - 130
|
|
||||||
# - 149
|
|
||||||
# #- 140
|
|
||||||
# - 180
|
|
||||||
- name: Start mailu containers
|
- name: Start mailu containers
|
||||||
command: "docker start {{ containers | join(' ') }}"
|
command: "docker start {{ containers | join(' ') }}"
|
||||||
become: true
|
become: true
|
||||||
@ -60,7 +43,10 @@
|
|||||||
msg: "var is {{ NEW_IP }}"
|
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_path2: "{{ ruleset.stdout }}"
|
||||||
|
when: inventory_hostname in groups['router']
|
||||||
|
- set_fact:
|
||||||
|
app_path: "{{ app_path2 | 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') }}"
|
||||||
when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
- name: Print the gateway for each host when defined
|
- name: Print the gateway for each host when defined
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user