Initial commit of UniFi controller ansible role

Change-Id: I53f5cbc07ab26655c76e015d74c22d2a2044f1dd
diff --git a/tasks/Debian.yml b/tasks/Debian.yml
new file mode 100644
index 0000000..29ca2b4
--- /dev/null
+++ b/tasks/Debian.yml
@@ -0,0 +1,31 @@
+---
+# unifi tasks/Debian.yml
+#
+# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
+# SPDX-License-Identifier: Apache-2.0
+
+- name: Add UniFi apt repo key
+  apt_key:
+    data: "{{ lookup('file','06E85760C0A52C50.asc') }}"
+    state: "present"
+
+- name: Add Ubiqiti UniFi apt repo
+  apt_repository:
+    repo: "deb https://www.ui.com/downloads/unifi/debian stable ubiquiti"
+    update_cache: true
+
+- name: Install UniFi Network Controller package, and mongodb/jdk
+  apt:
+    name:
+      - "openjdk-8-jdk-headless"
+      - "mongodb"
+      - "unifi"
+    state: "present"
+    update_cache: true
+    cache_valid_time: 3600
+
+- name: Start and Enable UniFi Service
+  service:
+    name: "unifi"
+    state: "started"
+    enabled: true