cloudserve-infrastructure/roles/wallabag/tasks/main.yml
Marty Oehme a52cab2f61
Refactor wallabag stack name and repo variables
Brought in line with other stack naming schemes.
2023-12-08 20:34:41 +01:00

23 lines
643 B
YAML

---
## install wallabag container
- name: Check upstream status
community.docker.docker_container_exec:
container: "{{ caddy_container_id }}"
command: >
curl localhost:2019/id/{{ stack_name }}_upstream/
register: result
changed_when: (result.stdout | from_json) != (lookup('template', 'upstream.json.j2') | from_yaml)
become: true
notify: "update wallabag upstream"
- name: Deploy wallabag to swarm
community.general.docker_stack:
name: "{{ stack_name }}"
state: present
prune: yes
compose:
- "{{ stack_compose }}"
become: true
tags:
- docker-swarm
notify: "update wallabag upstream"