26 lines
572 B
YAML
26 lines
572 B
YAML
- apt:
|
|
name='{{ item }}'
|
|
state: latest
|
|
update_cache=yes
|
|
default_release="{{ ansible_distribution_release }}-backports"
|
|
with_items:
|
|
- openjdk-8-jre-headless
|
|
|
|
- name: Add Unifi repository
|
|
apt_repository:
|
|
repo: deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti
|
|
state: present
|
|
|
|
- name: Add Unifi GPG key
|
|
apt_key:
|
|
url: https://dl.ubnt.com/unifi/unifi-repo.gpg
|
|
keyring: /etc/apt/trusted.gpg.d/unifi-repo.gpg
|
|
|
|
- name: Install Unifi
|
|
apt:
|
|
name: '{{ item }}'
|
|
state: latest
|
|
update_cache: yes
|
|
with_items:
|
|
- unifi
|