From 85b0cea294e49f8a2ba77e6aef40b030c2f2f141 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 18 Nov 2018 19:23:50 +0100 Subject: [PATCH] Allow Syncthing have access. --- ansible/roles/perms/tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ansible/roles/perms/tasks/main.yml b/ansible/roles/perms/tasks/main.yml index 4246618..fbff451 100644 --- a/ansible/roles/perms/tasks/main.yml +++ b/ansible/roles/perms/tasks/main.yml @@ -22,6 +22,13 @@ groups: xppl append: true +- name: Add the Syncthing user to the XPPL group. + become: true + user: + name: syncthing + groups: xppl + append: true + - name: Ensure the XPPL root directory is created. become: true file: @@ -30,3 +37,12 @@ owner: xppl group: xppl mode: 0755 + +- name: Ensure the XPPL uploads directory is created. + become: true + file: + path: /var/xppl/xppl/uploads + state: directory + owner: xppl + group: xppl + mode: 0775