|
|
@ -61,6 +61,8 @@ |
|
|
|
dest: "{{ unifi_root_dir }}/archives/{{ unifi_current_version.stdout }}/" |
|
|
|
dest: "{{ unifi_root_dir }}/archives/{{ unifi_current_version.stdout }}/" |
|
|
|
recursive: True |
|
|
|
recursive: True |
|
|
|
delete: True |
|
|
|
delete: True |
|
|
|
|
|
|
|
rsync_opts: |
|
|
|
|
|
|
|
- '--sparse' |
|
|
|
delegate_to: "{{ inventory_hostname }}" |
|
|
|
delegate_to: "{{ inventory_hostname }}" |
|
|
|
when: unifi_install_mode == 'upgrade' |
|
|
|
when: unifi_install_mode == 'upgrade' |
|
|
|
tags: unifi |
|
|
|
tags: unifi |
|
|
@ -187,9 +189,7 @@ |
|
|
|
tags: unifi |
|
|
|
tags: unifi |
|
|
|
|
|
|
|
|
|
|
|
- name: Compress previous version |
|
|
|
- name: Compress previous version |
|
|
|
command: tar cJf {{ unifi_root_dir }}/archives/{{ unifi_current_version.stdout }}.txz ./ |
|
|
|
command: tar cf {{ unifi_root_dir }}/archives/{{ unifi_current_version.stdout }}.tar.zst --use-compress-program=zstd ./ |
|
|
|
environment: |
|
|
|
|
|
|
|
XZ_OPT: -T0 |
|
|
|
|
|
|
|
args: |
|
|
|
args: |
|
|
|
chdir: "{{ unifi_root_dir }}/archives/{{ unifi_current_version.stdout }}" |
|
|
|
chdir: "{{ unifi_root_dir }}/archives/{{ unifi_current_version.stdout }}" |
|
|
|
warn: False |
|
|
|
warn: False |
|
|
|