Unifi playbook

This commit is contained in:
Alexandre Iooss 2019-05-07 18:52:07 +02:00
parent 3a6a891aad
commit 72a60a988b
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,41 @@
---
# Install HTTPS support for APT
- name: Install apt-transport-https
apt:
update_cache: true
name:
- apt-transport-https
- gpg
- dirmngr
state: present
register: apt_result
retries: 3
until: apt_result is succeeded
# Add the key
- name: Configure the apt key
apt_key:
keyserver: keyserver.ubuntu.com
id: 06E85760C0A52C50
state: present
register: apt_key_result
retries: 3
until: apt_key_result is succeeded
loop:
# Add the repository into source list
- name: Configure unifi repository
apt_repository:
repo: "{{ item }}"
state: present
loop:
- deb http://www.ui.com/downloads/unifi/debian stable ubiquiti
- name: Install unifi
apt:
update_cache: true
name: unifi
state: present
register: apt_result
retries: 3
until: apt_result is succeeded

5
unifi.yml Normal file
View File

@ -0,0 +1,5 @@
---
# Deploy Unifi Controller
- hosts: unifi-pacaterie.adm.auro.re
roles:
- unifi-controller