Browse Source

start preparing for unifi nginx configuration

master
3moon 5 years ago
parent
commit
8756ac2d02
1 changed files with 27 additions and 2 deletions
  1. +27
    -2
      roles/unifi/tasks/main.yml

+ 27
- 2
roles/unifi/tasks/main.yml View File

@ -19,10 +19,35 @@
- name: install unifi-controller packages
apt:
name: unifi
state: present
state: latest
become: yes
notify:
- restart unifi
# - name: disable default unifi mongodb
# lineinfile:
# 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

Loading…
Cancel
Save