X-Git-Url: http://git.cyclocoop.org/%24self2&var_mode_affiche=squelette?a=blobdiff_plain;f=tasks%2Fdownload_nextcloud_source.yml;fp=tasks%2Fdownload_nextcloud_source.yml;h=4c79f2b45777e99360136e878d12173a02bbf4c0;hb=e98d8ba105eab6a1a8c65574923be9f00f124b0b;hp=77a46c61b1e1ecd240e465d0a90dc6a064e038b5;hpb=127e62e0da098421ca5cfa85e73648419c9ea17b;p=lhc%2Fansible.git diff --git a/tasks/download_nextcloud_source.yml b/tasks/download_nextcloud_source.yml index 77a46c6..4c79f2b 100644 --- a/tasks/download_nextcloud_source.yml +++ b/tasks/download_nextcloud_source.yml @@ -7,10 +7,10 @@ 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 @@ -22,17 +22,17 @@ 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 + 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"