From 6ef769763983f902d4decc59feb9420408696e38 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Thu, 9 Nov 2023 20:17:23 +0100 Subject: [PATCH] use remote_src, and not copy with ansible.builtin.unarchive --- roles/matomo/tasks/setup_install.yml | 2 +- roles/matomo/tasks/setup_plugin.yml | 2 +- roles/matomo/tasks/setup_upgrade.yml | 2 +- roles/nextcloud/tasks/setup.yml | 2 +- roles/rocketchat/tasks/setup.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/matomo/tasks/setup_install.yml b/roles/matomo/tasks/setup_install.yml index 71df02a..9ecb32b 100644 --- a/roles/matomo/tasks/setup_install.yml +++ b/roles/matomo/tasks/setup_install.yml @@ -17,7 +17,7 @@ dest: '{{ matomo_working_dir }}' owner: '{{ matomo_user }}' group: '{{ matomo_group }}' - copy: false + remote_src: true - name: Install new matomo files ansible.builtin.command: mv {{ matomo_working_dir }}/matomo {{ matomo_dir }} diff --git a/roles/matomo/tasks/setup_plugin.yml b/roles/matomo/tasks/setup_plugin.yml index 77fcee8..04554b5 100644 --- a/roles/matomo/tasks/setup_plugin.yml +++ b/roles/matomo/tasks/setup_plugin.yml @@ -75,7 +75,7 @@ dest: '{{ matomo_plugin_path }}' owner: '{{ nginx_owner }}' group: '{{ nginx_group }}' - copy: false + remote_src: true - name: Corrent directory name - {{ plugin_name }} ansible.builtin.command: mv {{ tmp_plugin_dir }} {{ plugin_dir }} diff --git a/roles/matomo/tasks/setup_upgrade.yml b/roles/matomo/tasks/setup_upgrade.yml index 44ac960..8d4f45a 100644 --- a/roles/matomo/tasks/setup_upgrade.yml +++ b/roles/matomo/tasks/setup_upgrade.yml @@ -17,7 +17,7 @@ dest: '{{ matomo_working_dir }}' owner: '{{ matomo_user }}' group: '{{ matomo_group }}' - copy: false + remote_src: true - name: Make sure config.ini.php will not be overwritten ansible.builtin.file: diff --git a/roles/nextcloud/tasks/setup.yml b/roles/nextcloud/tasks/setup.yml index 6a7fb7a..f1aad2e 100644 --- a/roles/nextcloud/tasks/setup.yml +++ b/roles/nextcloud/tasks/setup.yml @@ -128,7 +128,7 @@ dest: '{{ nextcloud_dir }}' owner: '{{ nginx_owner }}' group: '{{ nginx_group }}' - copy: false + remote_src: true # workaround for ansible 2.1.0.0 bug environment: LANG: C diff --git a/roles/rocketchat/tasks/setup.yml b/roles/rocketchat/tasks/setup.yml index 7441698..adb1f09 100644 --- a/roles/rocketchat/tasks/setup.yml +++ b/roles/rocketchat/tasks/setup.yml @@ -83,7 +83,7 @@ - name: Unpack the Rocket.Chat binary tarball version {{ rocketchat_version }} ansible.builtin.unarchive: - copy: false + remote_src: true src: "{{ rocketchat_source_file }}" dest: "{{ rocketchat_dir }}" creates: "{{ rocketchat_application_path }}"