From 87e90f91c268e013c92fe3d7bc7a54ffcf24528a Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 14 Aug 2023 14:47:44 +0200 Subject: [PATCH] upt playbook --- playbooks/sync.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 playbooks/sync.yaml diff --git a/playbooks/sync.yaml b/playbooks/sync.yaml new file mode 100644 index 0000000..541ca27 --- /dev/null +++ b/playbooks/sync.yaml @@ -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 \ No newline at end of file