ansible/playbooks/repair_nextcloud.yml

11 lines
472 B
YAML
Raw Normal View History

2023-09-30 11:34:39 +02:00
- 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 {} \'