From 7e6e630808ddeacce9b7e456e4398244cf8218f0 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 21 Jan 2022 22:28:13 +0000 Subject: [PATCH] Don't provision occ script on every machine It only makes sense on 1 --- .../files/docker-utils => pve_docker/files/nextcloud}/occ | 0 ansible/roles/pve_docker/tasks/nextcloud.yml | 8 ++++++++ 2 files changed, 8 insertions(+) rename ansible/roles/{docker_cleanup/files/docker-utils => pve_docker/files/nextcloud}/occ (100%) diff --git a/ansible/roles/docker_cleanup/files/docker-utils/occ b/ansible/roles/pve_docker/files/nextcloud/occ similarity index 100% rename from ansible/roles/docker_cleanup/files/docker-utils/occ rename to ansible/roles/pve_docker/files/nextcloud/occ diff --git a/ansible/roles/pve_docker/tasks/nextcloud.yml b/ansible/roles/pve_docker/tasks/nextcloud.yml index e3fb593..a3e7717 100644 --- a/ansible/roles/pve_docker/tasks/nextcloud.yml +++ b/ansible/roles/pve_docker/tasks/nextcloud.yml @@ -28,6 +28,14 @@ register: config_file become: true +- name: Install occ script + template: + src: files/nextcloud/occ + dest: /opt/nextcloud/occ + mode: "0755" + owner: "{{ docker_user.name }}" + become: true + - name: restart nextcloud shell: chdir: /opt/nextcloud