mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
upt playbook
This commit is contained in:
parent
0fe4d212af
commit
f587494d16
@ -14,6 +14,7 @@
|
|||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname in groups['nas']
|
||||||
|
|
||||||
- name: Start mailu rasp
|
- name: Start mailu rasp
|
||||||
uri:
|
uri:
|
||||||
url: "http://192.168.77.106:9000/api/stacks/130/start?endpointId=13"
|
url: "http://192.168.77.106:9000/api/stacks/130/start?endpointId=13"
|
||||||
@ -42,6 +43,9 @@
|
|||||||
command: nvram commit
|
command: nvram commit
|
||||||
when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
|
- name: Restart firewall
|
||||||
|
command: service restart_firewall
|
||||||
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
- name: Stop mailu main
|
- name: Stop mailu main
|
||||||
uri:
|
uri:
|
||||||
@ -57,15 +61,11 @@
|
|||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname in groups['nas']
|
||||||
|
|
||||||
- name: Create archive
|
|
||||||
ansible.builtin.shell: 'tar -czf /share/Data/dockers.tar.gz /share/docker_data/{mailu2,webhub,ha} --exclude="/ha/backups/*" --exclude="home-assistant.log*"'
|
|
||||||
ignore_errors: yes
|
|
||||||
when: inventory_hostname in groups['router']
|
|
||||||
|
|
||||||
- name: Create archive
|
- name: Create archive
|
||||||
ansible.builtin.shell: 'tar -czf /share/Data/dockers.tar.gz /share/docker_data/{mailu2,webhub,ha} --exclude="/ha/backups/*" --exclude="home-assistant.log*"'
|
ansible.builtin.shell: 'tar -czf /share/Data/dockers.tar.gz /share/docker_data/{mailu2,webhub,ha} --exclude="/ha/backups/*" --exclude="home-assistant.log*"'
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname in groups['nas']
|
||||||
|
|
||||||
- name: Start HA
|
- name: Start HA
|
||||||
uri:
|
uri:
|
||||||
url: "http://192.168.77.106:9000/api/stacks/2/start?endpointId=2"
|
url: "http://192.168.77.106:9000/api/stacks/2/start?endpointId=2"
|
||||||
@ -79,6 +79,7 @@
|
|||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname in groups['nas']
|
||||||
|
|
||||||
- name: Start mailu main
|
- name: Start mailu main
|
||||||
uri:
|
uri:
|
||||||
url: "http://192.168.77.106:9000/api/stacks/108/start?endpointId=2"
|
url: "http://192.168.77.106:9000/api/stacks/108/start?endpointId=2"
|
||||||
@ -101,6 +102,9 @@
|
|||||||
command: nvram commit
|
command: nvram commit
|
||||||
when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
|
- name: Restart firewall
|
||||||
|
command: service restart_firewall
|
||||||
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
- name: Stop mailu rhasp
|
- name: Stop mailu rhasp
|
||||||
uri:
|
uri:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user