mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49:26 +00:00
upt playbook
This commit is contained in:
parent
1cffed125d
commit
bb550998c6
@ -13,6 +13,7 @@
|
|||||||
timeout: 60
|
timeout: 60
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
when: inventory_hostname in groups['nas']
|
||||||
- name: Start mailu rhasp
|
- name: Start mailu rhasp
|
||||||
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"
|
||||||
@ -25,6 +26,7 @@
|
|||||||
timeout: 60
|
timeout: 60
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
when: inventory_hostname in groups['nas']
|
||||||
- name: Stop mailu main
|
- name: Stop mailu main
|
||||||
uri:
|
uri:
|
||||||
url: "http://192.168.77.106:9000/api/stacks/108/stop?endpointId=2"
|
url: "http://192.168.77.106:9000/api/stacks/108/stop?endpointId=2"
|
||||||
@ -37,7 +39,7 @@
|
|||||||
timeout: 60
|
timeout: 60
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
when: inventory_hostname in groups['nas']
|
||||||
- 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
|
||||||
@ -53,6 +55,7 @@
|
|||||||
timeout: 60
|
timeout: 60
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
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"
|
||||||
@ -65,7 +68,7 @@
|
|||||||
timeout: 60
|
timeout: 60
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
when: inventory_hostname in groups['nas']
|
||||||
- name: Stop mailu rhasp
|
- name: Stop mailu rhasp
|
||||||
uri:
|
uri:
|
||||||
url: "http://192.168.77.106:9000/api/stacks/130/stop?endpointId=13"
|
url: "http://192.168.77.106:9000/api/stacks/130/stop?endpointId=13"
|
||||||
@ -78,5 +81,6 @@
|
|||||||
timeout: 60
|
timeout: 60
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
when: inventory_hostname in groups['nas']
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user