Update to 2022-12-07 11:00

This commit is contained in:
Daniel Berteaud
2022-12-07 11:00:11 +01:00
parent 000a87b1ae
commit 5f94190c9e
9 changed files with 41 additions and 11 deletions

View File

@@ -3,11 +3,11 @@
# Where unifi will be installed
unifi_root_dir: /opt/unifi
# Version to deploy
unifi_version: 7.2.95
unifi_version: 7.3.76
# URL to get the installation tarball
unifi_archive_url: https://www.ubnt.com/downloads/unifi/{{ unifi_version }}/UniFi.unix.zip
# Expected sha256
unifi_archive_sha256: 0ab8439a3f652a3e48d370a099949be002d769a03ab48367442748f138ee5acc
unifi_archive_sha256: e4f62606a6eba055c0ab16735cc3b7002f2e7913cac64fe0a1469c76b26d9067
# Should ansible handle upgrades (if False, only initial install will be done)
unifi_manage_upgrade: True
# List of ports used by UniFi controler

View File

@@ -24,6 +24,28 @@
notify: restart unifi
tags: unifi
- name: Detect exact JRE version
command: rpm -q java-11-openjdk-headless
args:
warn: False
changed_when: False
register: jitsi_jre11_version
tags: unifi
- name: Select JRE 11 as default version
alternatives:
name: "{{ item.name }}"
link: "{{ item.link }}"
path: "{{ item.path }}"
loop:
- name: java
link: /usr/bin/java
path: /usr/lib/jvm/{{ jitsi_jre11_version.stdout | trim | regex_replace('-headless', '') }}/bin/java
- name: jre_openjdk
link: /usr/lib/jvm/jre-openjdk
path: /usr/lib/jvm/{{ jitsi_jre11_version.stdout | trim | regex_replace('-headless', '') }}
tags: unifi
- name: Create a system account to run unifi
user:
name: unifi

View File

@@ -1,6 +1,6 @@
---
unifi_packages:
- java-1.8.0-openjdk-headless
- java-11-openjdk-headless
- mongodb-org-server
- mongodb-org

View File

@@ -1,6 +1,6 @@
---
unifi_packages:
- java-1.8.0-openjdk-headless
- java-11-openjdk-headless
- mongodb-org-server
- mongodb-org