aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/unifi
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-03-09 16:55:02 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-03-09 16:55:02 +0100
commitedbe2bfb1b4845f853a1634565fbf264d1591628 (patch)
tree05b0451f42d2cb927719f52f93fac7358bd15d39 /ansible/roles/unifi
parentd4de905ae685c750fa7f0b8f65db579d4aeec193 (diff)
downloadinfra-edbe2bfb1b4845f853a1634565fbf264d1591628.tar.gz
infra-edbe2bfb1b4845f853a1634565fbf264d1591628.tar.bz2
infra-edbe2bfb1b4845f853a1634565fbf264d1591628.tar.xz
infra-edbe2bfb1b4845f853a1634565fbf264d1591628.zip
lxc-host:
o Correcting ordering of networkd files. packages: o Better split of package names. unifi: o importing role from Bitraf. o Configring lxc host on birgitte.
Diffstat (limited to 'ansible/roles/unifi')
-rw-r--r--ansible/roles/unifi/handlers/main.yml3
-rw-r--r--ansible/roles/unifi/tasks/main.yml23
2 files changed, 26 insertions, 0 deletions
diff --git a/ansible/roles/unifi/handlers/main.yml b/ansible/roles/unifi/handlers/main.yml
new file mode 100644
index 0000000..ce78323
--- /dev/null
+++ b/ansible/roles/unifi/handlers/main.yml
@@ -0,0 +1,3 @@
+- name: update apt cache
+ apt:
+ update_cache: yes
diff --git a/ansible/roles/unifi/tasks/main.yml b/ansible/roles/unifi/tasks/main.yml
new file mode 100644
index 0000000..11c4c00
--- /dev/null
+++ b/ansible/roles/unifi/tasks/main.yml
@@ -0,0 +1,23 @@
+---
+- name: Ubiquiti APT key
+ notify: update apt cache
+ apt_key:
+ id: 06E85760C0A52C50
+ keyserver: keyserver.ubuntu.com
+
+- name: Ubiquiti APT repository
+ notify: update apt cache
+ copy:
+ dest: /etc/apt/sources.list.d/unifi.list
+ content: 'deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti'
+
+- meta: flush_handlers
+
+- name: packages
+ apt:
+ name: "{{ items }}"
+ install_recommends: no
+ vars:
+ items:
+ - openjdk-8-jre
+ - unifi