upt playbook

This commit is contained in:
jaydee 2023-08-20 13:56:03 +02:00
parent 4f7fe5e6b7
commit 0e65c5b5e3

View File

@ -1,7 +1,7 @@
- hosts: nas
name: Stop mailu
tasks:
- name: Stop mailu rhasp
- name: Start mailu rhasp
uri:
url: "http://192.168.77.106:9000/api/stacks/130/start?endpointId=13"
method: POST
@ -29,7 +29,7 @@
- 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
- name: Start mailu main
uri:
url: "http://192.168.77.106:9000/api/stacks/108/start?endpointId=2"
@ -43,7 +43,7 @@
register: result
ignore_errors: yes
- name: Start mailu rhasp
- name: Stop mailu rhasp
uri:
url: "http://192.168.77.106:9000/api/stacks/130/stop?endpointId=13"
method: POST