correction syntaxe
[lhc/ansible.git] / tasks / verif_installation_nextcloud.yml
1 - name: Vérif si la source nextcloud est téléchargée
2 become: true
3 ansible.builtin.stat:
4 path: "{{ nextcloud_source }}"
5 register: new_nextcloud_source
6
7 - name: Vérif si le dossier common app est créé
8 become: true
9 ansible.builtin.stat:
10 path: "{{ nextcloud_common }}"
11 register: new_nextcloud_common
12
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
16 vars:
17 ansible_become: true
18 become_user: nextcloud
19
20 - name: Create new app common folder from old version one
21 become_user: nextcloud
22 become: true
23 ansible.builtin.copy:
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