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