# HG changeset patch # User Luke Hoersten # Date 1666468315 18000 # Node ID 9aa5f284ea103605e2dffca3dbabd61df5182b90 # Parent e1f873a07ea2f48081c46947cea0c1b3409d7dad Added unifi ansible role diff -r e1f873a07ea2 -r 9aa5f284ea10 unifi/defaults/main.yaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/unifi/defaults/main.yaml Sat Oct 22 14:51:55 2022 -0500 @@ -0,0 +1,3 @@ +--- + +unifi_apt_packages: ["haveged", "openjdk-8-jre-headless", "mongodb-org-server", "unifi"] diff -r e1f873a07ea2 -r 9aa5f284ea10 unifi/tasks/main.yaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/unifi/tasks/main.yaml Sat Oct 22 14:51:55 2022 -0500 @@ -0,0 +1,35 @@ +--- + +- 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_arm64.deb" + +- 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] https://www.ui.com/downloads/unifi/debian stable 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_apt_packages}}"