Files
homelab/tasks/syncthing.yml
Alex Frantz fcb5f40bb9
Some checks failed
Deploy Containers / Prepare (push) Failing after 8s
add syncthing
2025-07-31 01:23:57 -04:00

22 lines
509 B
YAML

- name: Create folder structure
file:
path: "{{ item }}"
with_items:
- "{{ data_dir }}/syncthing"
- name: Deploy Syncthing Docker Container
docker_container:
name: syncthing
image: lscr.io/linuxserver/syncthing:latest
recreate: true
restart_policy: unless-stopped
networks:
- name: homelab
env:
PUID: "{{ PUID }}"
PGID: "{{ PGID }}"
TZ: "{{ TZ }}"
volumes:
- "{{ data_dir }}/syncthing:/config"
- "{{ SYNCTHING_DATA_PATH }}:/data"