forked from jakub/ansible
feat: add playbook to update Tozneberto with Portainer stack redeploy
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user