ansible/roles/docker/tasks/syncthing.yml

19 lines
450 B
YAML
Raw Normal View History

2024-12-27 02:28:37 +01:00
- name: make syncthing directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/syncthing
- name: Template out the compose file
ansible.builtin.template:
src: syncthing-compose.yml.j2
dest: /opt/stacks/syncthing/compose.yml
owner: root
mode: 644
- name: deploy syncthing stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/syncthing
files:
- compose.yml