aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/17_syncthing/tasks/main.yml
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-07-12 18:04:51 +0300
committerJan Tuomi <jan@jantuomi.fi>2026-07-12 18:04:51 +0300
commitc4ccb8a8a8e6f1435c4db7873baa0df21295252f (patch)
treed666b0a6f15c9c0f9f74ad6c475420d2f3ec994a /roles/jails/17_syncthing/tasks/main.yml
parent659238b46057ed8a57e28004bb9dc07d6415a959 (diff)
Set up syncthing jail
Diffstat (limited to 'roles/jails/17_syncthing/tasks/main.yml')
-rw-r--r--roles/jails/17_syncthing/tasks/main.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/jails/17_syncthing/tasks/main.yml b/roles/jails/17_syncthing/tasks/main.yml
index 2abdaff..4575308 100644
--- a/roles/jails/17_syncthing/tasks/main.yml
+++ b/roles/jails/17_syncthing/tasks/main.yml
@@ -1,2 +1,23 @@
- import_role:
name: jail
+ tasks_from: jail_setup
+
+- name: Set syncthing user UID to 1001
+ shell: pw usermod syncthing -u 1001 -g 1001 || true
+ changed_when: false
+
+- name: Set syncthing group GID to 1001
+ shell: pw groupmod syncthing -g 1001 || true
+ changed_when: false
+
+- name: Fix syncthing config ownership
+ file:
+ path: /usr/local/etc/syncthing
+ state: directory
+ owner: syncthing
+ group: syncthing
+ recurse: true
+
+- import_role:
+ name: jail
+ tasks_from: jail_launch