Files
homelab/tasks/syncthing.yml
Alex Frantz 502ff40bbf
All checks were successful
Deploy Containers / Prepare (push) Successful in 14s
forgot state
2025-07-31 01:24:57 -04:00

23 lines
530 B
YAML

- name: Create folder structure
file:
path: "{{ item }}"
state: directory
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"