Update to 2020-09-17 18:00

master
Daniel Berteaud 4 years ago
parent 8df16266a3
commit 4be7630d4d
  1. 4
      roles/unifi/defaults/main.yml
  2. 6
      roles/unifi/tasks/main.yml

@ -1,9 +1,9 @@
--- ---
unifi_root_dir: /opt/unifi unifi_root_dir: /opt/unifi
unifi_version: 6.0.20 unifi_version: 6.0.22
unifi_archive_url: https://www.ubnt.com/downloads/unifi/{{ unifi_version }}/UniFi.unix.zip unifi_archive_url: https://www.ubnt.com/downloads/unifi/{{ unifi_version }}/UniFi.unix.zip
unifi_archive_sha1: 06f9a2613ffbe3392c0ac362914d04384616cd08 unifi_archive_sha1: f328e91a5baa1c89683a479573f7436c98f75cae
unifi_manage_upgrade: True unifi_manage_upgrade: True
unifi_http_port: 8080 unifi_http_port: 8080
unifi_https_port: 8443 unifi_https_port: 8443

@ -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

Loading…
Cancel
Save