auxiliary infrastructure [PXE, netbox, ubnt controller]. probably on a pi or something
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

53 lines
1002 B

- apt_key:
url: https://dl.ubnt.com/unifi/unifi-repo.gpg
state: present
become: yes
- apt_repository:
repo: "deb http://www.ubnt.com/downloads/unifi/debian {{unifi_channel}} ubiquiti"
state: present
become: yes
- name: install java packages
apt:
name: openjdk-8-jre-headless
state: present
update_cache: yes
become: yes
- name: install unifi-controller packages
apt:
name: unifi
state: latest
become: yes
notify:
- restart unifi
# - name: disable default unifi mongodb
# lineinfile:
- name: install unifi nginx config
template:
src: nginx/unifi.conf
dest: /etc/nginx/sites-available/unifi
owner: root
group: root
mode: 0644
become: yes
- name: link nginx config
file:
src: /etc/nginx/sites-available/unifi
dest: /etc/nginx/sites-enabled/unifi
state: link
owner: root
group: root
mode: 0644
become: yes
- name: restart nginx
service:
name: nginx
state: restarted
become: yes