You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-homelab/roles/portainer_gotify/tasks/main.yml

31 lines
962 B
YAML

---
- name: "Gotify | Restore any missing volumes from S3"
ansible.builtin.include_role:
name: chatton.docker_backup.docker_s3_volume_restore
vars:
docker_backup_s3_volume:
name: "{{ gotify_portainer_stack_name }}_data"
- name: "Gotify | Update Portainer."
chatton.portainer.portainer_stack:
username: '{{ portainer_user }}'
password: '{{ portainer.password }}'
base_url: '{{ portainer_base_url }}'
stack_name: '{{ gotify_portainer_stack_name }}'
endpoint_id: '{{ portainer_endpoint }}'
state: "{{ gotify_state }}"
definition:
version: "3.1"
services:
gotify:
labels: "{{ backup_labels }}"
image: "{{ gotify_image}}:{{ gotify_tag }}"
container_name: "{{ gotify_container_name }}"
volumes:
- data:/app/data
ports:
- "{{ gotify_expose_port }}:80"
restart: "{{ restart_policy }}"
volumes:
data: {}