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
198a4e04a1
commit
f630502258
@ -1,19 +1,7 @@
|
||||
- hosts: nas
|
||||
name: Stop mailu
|
||||
tasks:
|
||||
- name: Stop mailu
|
||||
uri:
|
||||
url: "http://192.168.77.106:9000/api/stacks/130/stop?endpointId=13"
|
||||
method: POST
|
||||
body_format: form-urlencoded
|
||||
return_content: yes
|
||||
headers:
|
||||
Content-Type: "application/json"
|
||||
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
||||
timeout: 60
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
- name: Start mailu
|
||||
- name: Stop mailu rhasp
|
||||
uri:
|
||||
url: "http://192.168.77.106:9000/api/stacks/130/start?endpointId=13"
|
||||
method: POST
|
||||
@ -25,5 +13,46 @@
|
||||
timeout: 60
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
- name: Stop mailu main
|
||||
uri:
|
||||
url: "http://192.168.77.106:9000/api/stacks/108/stop?endpointId=2"
|
||||
method: POST
|
||||
body_format: form-urlencoded
|
||||
return_content: yes
|
||||
headers:
|
||||
Content-Type: "application/json"
|
||||
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
||||
timeout: 60
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Create archive
|
||||
ansible.builtin.shell: 'tar -czvf /share/Data/dockers.tar.gz /share/docker_data/{mailu2,webhub,ha} --exclude="/ha/backups/*" --exclude="home-assistant.log*"'
|
||||
|
||||
- name: Start mailu main
|
||||
uri:
|
||||
url: "http://192.168.77.106:9000/api/stacks/108/start?endpointId=2"
|
||||
method: POST
|
||||
body_format: form-urlencoded
|
||||
return_content: yes
|
||||
headers:
|
||||
Content-Type: "application/json"
|
||||
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
||||
timeout: 60
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Start mailu rhasp
|
||||
uri:
|
||||
url: "http://192.168.77.106:9000/api/stacks/130/stop?endpointId=13"
|
||||
method: POST
|
||||
body_format: form-urlencoded
|
||||
return_content: yes
|
||||
headers:
|
||||
Content-Type: "application/json"
|
||||
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
||||
timeout: 60
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user