diff options
Diffstat (limited to 'roles/jails/17_syncthing/tasks')
| -rw-r--r-- | roles/jails/17_syncthing/tasks/main.yml | 21 |
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 |
