X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=tasks%2Fdownload_nextcloud_source.yml;h=4c79f2b45777e99360136e878d12173a02bbf4c0;hb=e98d8ba105eab6a1a8c65574923be9f00f124b0b;hp=e05ada36deb0318db5995f7db31fceae1e93c7f0;hpb=fdd0c75bf23bf60d504d53615ead32ba4a1aaf58;p=lhc%2Fansible.git diff --git a/tasks/download_nextcloud_source.yml b/tasks/download_nextcloud_source.yml index e05ada3..4c79f2b 100644 --- a/tasks/download_nextcloud_source.yml +++ b/tasks/download_nextcloud_source.yml @@ -4,16 +4,16 @@ ansible.builtin.get_url: url: "{{ nextcloud_repo_url }}/nextcloud-{{ nouvelle_version }}.tar.bz2" dest: "{{ nextcloud_sources_files_path }}/" - mode: '755' #or u=rwx,g=rx,o=rx + mode: '755' # or u=rwx,g=rx,o=rx checksum: "md5:{{ nextcloud_repo_url }}/nextcloud-{{ nouvelle_version }}.tar.bz2.md5" -- name: create nextcloud source dir +- name: Create nextcloud source dir become: true become_user: nextcloud - ansible.builtin.file: + ansible.builtin.file: path: "{{ nextcloud_sources_files_path }}/nextcloud-{{ nouvelle_version }}" state: directory - mode: '755' #or u=rwx,g=rx,o=rx + mode: '755' # or u=rwx,g=rx,o=rx - name: Extract downloaded nextcloud source become: true @@ -21,18 +21,18 @@ ansible.builtin.unarchive: src: "{{ nextcloud_sources_files_path }}/nextcloud-{{ nouvelle_version }}.tar.bz2" dest: "{{ nextcloud_sources_files_path }}/" -# mode: '755' #or u=rwx,g=rx,o=rx - remote_src: yes +# mode: '755' # or u=rwx,g=rx,o=rx + remote_src: true -- name: "rename nextloud dir to nextcloud-{{ nouvelle_version }}" +- name: Rename nextloud dir to nextcloud-nouvelle_version become: true become_user: nextcloud - ansible.builtin.copy: + ansible.builtin.copy: src: "{{ nextcloud_sources_files_path }}/nextcloud/" dest: "{{ nextcloud_sources_files_path }}/nextcloud-{{ nouvelle_version }}" - remote_src: yes #because the config file is already in the nextcloud_tmp_path + remote_src: true # because the config file is already in the nextcloud_tmp_path -- name: deleted downloaded nextcloud files +- name: Deleted downloaded nextcloud files become: true become_user: nextcloud ansible.builtin.file: @@ -40,4 +40,4 @@ state: absent loop: - "{{ nextcloud_sources_files_path }}/nextcloud-{{ nouvelle_version }}.tar.bz2" - - "{{ nextcloud_sources_files_path }}/nextcloud" \ No newline at end of file + - "{{ nextcloud_sources_files_path }}/nextcloud"