24 lines
580 B
YAML
24 lines
580 B
YAML
# 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
|
|
url_username: "{{ portainer_basic_auth_user }}"
|
|
url_password: "{{ portainer_basic_auth_password }}"
|
|
force_basic_auth: true
|
|
status_code:
|
|
- 200
|
|
- 204
|
|
register: redeploy_result
|
|
|
|
- name: Show redeploy result
|
|
ansible.builtin.debug:
|
|
var: redeploy_result.status
|