From 5b979b3944331a2f206e0e35702f17a44658a987 Mon Sep 17 00:00:00 2001 From: "martin.fencl" Date: Thu, 3 Sep 2026 09:42:29 +0200 Subject: [PATCH] feat: add playbook to update Tozneberto with Portainer stack redeploy --- update_tozneberto.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 update_tozneberto.yml diff --git a/update_tozneberto.yml b/update_tozneberto.yml new file mode 100644 index 0000000..5d53e5f --- /dev/null +++ b/update_tozneberto.yml @@ -0,0 +1,20 @@ +# update_tozneberto.yml + +--- +- name: Update Tozneberto + hosts: localhost + gather_facts: false + + tasks: + - name: Trigger Portainer stack redeploy + ansible.builtin.uri: + url: "{{ portainer_tozneberto_webhook }}" + method: POST + status_code: + - 200 + - 204 + register: redeploy_result + + - name: Show redeploy result + ansible.builtin.debug: + var: redeploy_result.status