diff options
| author | Luke Hoersten <[email protected]> | 2026-04-18 12:52:35 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-04-18 12:52:35 -0500 |
| commit | d609c10d0f93817d30608b6bb64fd07848c25705 (patch) | |
| tree | 195634e08a71f67b9070f13c5228125ac96357e7 /unifi-controller | |
| parent | b271a925364616b2d25d3ea6b6492b7412aaf248 (diff) | |
Rename unifi role to unifi-controller
Diffstat (limited to 'unifi-controller')
| -rw-r--r-- | unifi-controller/README.md | 12 | ||||
| -rw-r--r-- | unifi-controller/defaults/main.yaml | 3 | ||||
| -rw-r--r-- | unifi-controller/tasks/main.yaml | 39 |
3 files changed, 54 insertions, 0 deletions
diff --git a/unifi-controller/README.md b/unifi-controller/README.md new file mode 100644 index 0000000..40d5be6 --- /dev/null +++ b/unifi-controller/README.md @@ -0,0 +1,12 @@ +# UniFi Controller on ARM64 + +This role is for setting up a Ubiquiti Unifi Controller on ARM64 Ubuntu building on the [official docs](https://help.ui.com/hc/en-us/articles/220066768-UniFi-How-to-Install-and-Update-via-APT-on-Debian-or-Ubuntu) + +## Notes + +Unfortunately Unifi Controller relies on some pretty outdated packages, making them hard to find in recent Linux distributions. Specifically, the following packages need to be backported: + +- Mongo 3.6 +- libssl1.1 + +By specifying arm64 in the Xenial Mongo 3.6 apt repo, the diff --git a/unifi-controller/defaults/main.yaml b/unifi-controller/defaults/main.yaml new file mode 100644 index 0000000..e066408 --- /dev/null +++ b/unifi-controller/defaults/main.yaml @@ -0,0 +1,3 @@ +--- + +unifi_controller_apt_packages: ["haveged", "openjdk-8-jre-headless", "mongodb-org-server", "unifi"] diff --git a/unifi-controller/tasks/main.yaml b/unifi-controller/tasks/main.yaml new file mode 100644 index 0000000..6880f20 --- /dev/null +++ b/unifi-controller/tasks/main.yaml @@ -0,0 +1,39 @@ +--- + +- name: add mongo apt key + become: yes + get_url: + url: "https://pgp.mongodb.com/server-3.6.asc" + dest: "/etc/apt/trusted.gpg.d/mongo-3.6.asc" + mode: "0644" + +- name: add mongo apt repo + become: yes + apt_repository: repo="deb [arch=arm64 signed-by=/etc/apt/trusted.gpg.d/mongo-3.6.asc] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" + +- name: install libssl1.1 deb + become: yes + apt: deb="http://ports.ubuntu.com/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_{{arch}}.deb" + +# To accept codename change: +# 1. sudo apt update +# 2. sudo apt-get upgrade -y + +- name: add unifi apt key + become: yes + get_url: + url: "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x06e85760c0a52c50" + dest: "/etc/apt/trusted.gpg.d/unifi.asc" + mode: "0644" + +- name: add unifi apt repo + become: yes + apt_repository: repo="deb [arch=armhf signed-by=/etc/apt/trusted.gpg.d/unifi.asc] https://www.ui.com/downloads/unifi/debian unifi-7.4 ubiquiti" + +- name: update apt package cache + become: yes + apt: upgrade="dist" update_cache="yes" cache_valid_time="3600" + +- name: install unifi apt packages + become: yes + apt: name="{{unifi_controller_apt_packages}}" |
