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
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
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
+# mode: '755' # or u=rwx,g=rx,o=rx
remote_src: yes
- name: "rename nextloud dir to nextcloud-{{ nouvelle_version }}"
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: yes # because the config file is already in the nextcloud_tmp_path
- name: deleted downloaded nextcloud files
become: true