upt playbook

This commit is contained in:
jaydee 2023-08-14 14:47:44 +02:00
parent 41d0da3c31
commit 87e90f91c2

16
playbooks/sync.yaml Normal file
View File

@ -0,0 +1,16 @@
- hosts: localhost
name: Stop mailu
become: true
tasks:
- name: Stop mailu
uri:
url: "http://192.168.77.106:9000/api/stacks/130/start?endpointId=13"
method: POST
body_format: form-urlencoded
return_content: yes
headers:
Content-Type: "application/json"
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
register: result
ignore_errors: yes