1 - name: Vérif si la source nextcloud est téléchargée
4 path: "{{ nextcloud_source }}"
5 register: new_nextcloud_source
7 - name: Vérif si le dossier common app est créé
10 path: "{{ nextcloud_common }}"
11 register: new_nextcloud_common
13 - name: Include download_nextcloud_source tasks
14 ansible.builtin.include_tasks: tasks/download_nextcloud_source.yml
15 when: not new_nextcloud_source.stat.exists
18 become_user: nextcloud
20 - name: Create new app common folder from old version one
21 become_user: nextcloud
24 src: "{{ nextcloud_common_files_path }}/nextcloud-{{ ancienne_version }}/"
25 dest: "{{ nextcloud_common_files_path }}/nextcloud-{{ nouvelle_version }}"
26 remote_src: true # because the copy is from remote host to remote host
27 mode: '754' # or 'u=rwx,g=rx,o=r'
28 when: not new_nextcloud_common.stat.exists