ansible.builtin.copy:
src: "{{ nextcloud_common_files_path }}/nextcloud-{{ ancienne_version }}/"
dest: "{{ nextcloud_common_files_path }}/nextcloud-{{ nouvelle_version }}"
- remote_src: true # because the config file is already in the nextcloud_tmp_path
+ remote_src: true # because the copy is from remote host to remote host
mode: '754' # or 'u=rwx,g=rx,o=r'
when: not new_nextcloud_common.stat.exists