init syncthing role

This commit is contained in:
2026-01-26 23:12:48 -07:00
parent 5c4fe4f2bd
commit b8b3e6e577
4 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
- name: Create docker-compose project directory
file:
path: /root/syncthing
state: directory
mode: 0750
owner: root
group: root
- name: Create docker-compose
template:
src: templates/docker-compose.yaml.j2
dest: /root/syncthing/docker-compose.yaml
owner: root
group: root
mode: 0600
- name: Run docker-compose up
command: docker compose up -d --build
args:
chdir: /root/syncthing