add syncthing
Some checks failed
Deploy Containers / Prepare (push) Failing after 8s

This commit is contained in:
2025-07-31 01:23:57 -04:00
parent b60d0ee675
commit fcb5f40bb9
2 changed files with 24 additions and 0 deletions

View File

@@ -70,6 +70,9 @@
- name: Deploy Monitoring Stack
import_tasks: tasks/monitoring.yml
tags: monitoring_deploy
- name: Deploy Syncthing
import_tasks: tasks/syncthing.yml
tags: syncthing_deploy
- hosts: jackson

21
tasks/syncthing.yml Normal file
View File

@@ -0,0 +1,21 @@
- 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"