From 823c62558c3eed16b8d0f8f75156afe22919bd37 Mon Sep 17 00:00:00 2001 From: rominique Date: Fri, 28 Jun 2024 01:52:22 +0200 Subject: [PATCH] correction: mauvaise source du lien vers le dossier common nextcloud correction backup db dans dossier data correction chemin du dossier data --- tasks/backup_nextcloud.yml | 2 +- tasks/config_nuage.yml | 2 +- update_nuage_instance.yml | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tasks/backup_nextcloud.yml b/tasks/backup_nextcloud.yml index c126cb9..328052c 100644 --- a/tasks/backup_nextcloud.yml +++ b/tasks/backup_nextcloud.yml @@ -8,7 +8,7 @@ - name: Create a dump of the postgreSQL database # noqa : command-instead-of-module become: true become_user: "{{ nextcloud_php_user }}" - ansible.builtin.command: "pg_dump -f {{ nextcloud_webroot }}/{{ nextcloud_db_name }}.pgc -F c -O -b {{ nextcloud_db_name }}" + ansible.builtin.command: "pg_dump -f {{ nextcloud_webroot }}/data/{{ nextcloud_db_name }}.pgc -F c -O -b {{ nextcloud_db_name }}" args: chdir: "{{ nextcloud_webroot }}" diff --git a/tasks/config_nuage.yml b/tasks/config_nuage.yml index ffb8ab7..85d8a5e 100644 --- a/tasks/config_nuage.yml +++ b/tasks/config_nuage.yml @@ -162,7 +162,7 @@ - name: Create nextcloud common app dir symbolic link ansible.builtin.file: - src: "{{ nextcloud_symbolic_common }}" + src: "{{ nextcloud_common }}" dest: "{{ nextcloud_webroot }}/common" owner: nextcloud group: nextcloud diff --git a/update_nuage_instance.yml b/update_nuage_instance.yml index eeed883..fa70f08 100644 --- a/update_nuage_instance.yml +++ b/update_nuage_instance.yml @@ -72,12 +72,13 @@ - name: Création du dossier common de la nouvelle version en utilisant les apps de l'instance test-nuage become: true ansible.builtin.copy: - src: "/home/site/home/sites/data/org/heureux-cyclage/test-nuage/apps/*" - dest: "{{ nextcloud_common_files_path }}/nextcloud-{{ nouvelle_version }}/" + src: "/home/sites/data/org/heureux-cyclage/test-nuage/apps/" + dest: "{{ nextcloud_common_files_path }}/nextcloud-{{ nouvelle_version }}" remote_src: true # because the copy is from remote host to remote host mode: '754' # or 'u=rwx,g=rx,o=r' owner: nextcloud group: nextcloud + when: not new_nextcloud_common.stat.exists - name: Include backup tasks ansible.builtin.include_tasks: tasks/backup_nextcloud.yml -- 2.20.1