From 4dc241381d03820376968aa3df51d4088e79f994 Mon Sep 17 00:00:00 2001 From: jaydee Date: Sat, 30 Sep 2023 11:34:39 +0200 Subject: [PATCH] upt playbook --- playbooks/repair_nextcloud.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 playbooks/repair_nextcloud.yml diff --git a/playbooks/repair_nextcloud.yml b/playbooks/repair_nextcloud.yml new file mode 100644 index 0000000..1c0ceea --- /dev/null +++ b/playbooks/repair_nextcloud.yml @@ -0,0 +1,10 @@ +- hosts: nas + name: Sync mailu + ignore_unreachable: false + tasks: + - name: Change owner + ansible.builtin.shell: 'docker exec nextcloud-app-1 chown -R www-data:www-data /var/www/html/' + - name: Change dir perms + ansible.builtin.shell: 'docker exec nextcloud-app-1 find /var/www/html/ -type d -exec chmod 750 {} \;' + - name: Change file perms + ansible.builtin.shell: 'docker exec nextcloud-app-1 find /var/www/html/ -type f -exec chmod 640 {} \'