try to fix firewall rules

This commit is contained in:
Robert Kaussow 2018-07-11 23:08:25 +02:00
parent b94a7a29a2
commit 6c2f1b50a7
2 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
--- ---
unifi_version: 5.6.39 unifi_version: 5.6.39
unifi_openjdk_version: 1.8.0 unifi_openjdk_version: 1.8.0
unifi_restore_after_upgrade: False
unifi_group: ubnt unifi_group: ubnt
unifi_user: ubnt unifi_user: ubnt
@ -23,5 +24,7 @@ unifi_open_ports:
# - { flag: "allow_unifi", proto: "tcp", port: "8880" } # - { flag: "allow_unifi", proto: "tcp", port: "8880" }
# - { flag: "allow_unifi", proto: "tcp", port: "8843" } # - { flag: "allow_unifi", proto: "tcp", port: "8843" }
- { flag: "allow_unifi_speedtest", direction: "output", proto: "tcp", port: "6789" } - { flag: "allow_unifi_speedtest", direction: "output", proto: "tcp", port: "6789" }
- { flag: "allow_unifi_stun", direction: "input", proto: "udp", port: "3478" }
- { flag: "allow_unifi_stun", direction: "output", proto: "udp", port: "3478" } - { flag: "allow_unifi_stun", direction: "output", proto: "udp", port: "3478" }
- { flag: "allow_unifi_discover", direction: "input", proto: "udp", port: "10001" }
- { flag: "allow_unifi_discover", direction: "output", proto: "udp", port: "10001" } - { flag: "allow_unifi_discover", direction: "output", proto: "udp", port: "10001" }

View File

@ -33,6 +33,15 @@
become_user: "{{ unifi_user }}" become_user: "{{ unifi_user }}"
when: unifi_current_version is version_compare(unifi_version, ">") or unifi_current_version is version_compare('0.0.0', "=") when: unifi_current_version is version_compare(unifi_version, ">") or unifi_current_version is version_compare('0.0.0', "=")
- block:
become: True
become_user: "{{ unifi_user }}"
when:
- unifi_current_version is version_compare(unifi_version, ">") or unifi_current_version is version_compare('0.0.0', "=")
- unifi_restore_after_upgrade
- name: Create symlink for latest version - name: Create symlink for latest version
file: file:
src: "{{ unifi_base_dir }}/{{ unifi_version }}" src: "{{ unifi_base_dir }}/{{ unifi_version }}"