blob: 29ca2b4955428c190cef1517a52d4c217a2ff25b [file] [log] [blame]
---
# 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