Unifi-7.5 release doesnt seem to support arm so I held the version at 7.4.
authorLuke Hoersten <luke@hoersten.org>
Sat, 16 Sep 2023 01:39:37 -0500
changeset 223 de03976c2df1
parent 222 6eaeb42f5c10
child 224 25e44d8440d4
Unifi-7.5 release doesnt seem to support arm so I held the version at 7.4.
prometheus/server/tasks/main.yaml
unifi/tasks/main.yaml
--- a/prometheus/server/tasks/main.yaml	Fri Sep 15 22:46:46 2023 -0500
+++ b/prometheus/server/tasks/main.yaml	Sat Sep 16 01:39:37 2023 -0500
@@ -3,13 +3,13 @@
 - name: add grafana apt key
   become: yes
   get_url:
-    url: "https://packages.grafana.com/gpg.key"
+    url: "https://apt.grafana.com/gpg.key"
     dest: "/etc/apt/trusted.gpg.d/grafana.asc"
     mode: "0644"
 
 - name: add grafana apt repo
   become: yes
-  apt_repository: repo="deb [signed-by=/etc/apt/trusted.gpg.d/grafana.asc] https://packages.grafana.com/oss/deb stable main"
+  apt_repository: repo="deb [signed-by=/etc/apt/trusted.gpg.d/grafana.asc] https://apt.grafana.com stable main"
 
 - name: install prometheus and grafana
   become: yes
--- a/unifi/tasks/main.yaml	Fri Sep 15 22:46:46 2023 -0500
+++ b/unifi/tasks/main.yaml	Sat Sep 16 01:39:37 2023 -0500
@@ -15,6 +15,10 @@
   become: yes
   apt: deb="http://ports.ubuntu.com/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_arm64.deb"
 
+# To accept codename change:
+# 1. sudo apt update
+# 2. sudo apt-get upgrade -y
+
 - name: add unifi apt key
   become: yes
   get_url:
@@ -24,7 +28,7 @@
 
 - name: add unifi apt repo
   become: yes
-  apt_repository: repo="deb [arch=armhf] https://www.ui.com/downloads/unifi/debian stable ubiquiti"
+  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