36 lines
945 B
YAML
36 lines
945 B
YAML
- name: Add MongoDB repository
|
|
deb822_repository:
|
|
name: mongodb
|
|
uris: http://repo.mongodb.org/apt/debian
|
|
suites: '{{ ansible_distribution_release }}/mongodb-org/{{ mongodb_version }}'
|
|
components: main
|
|
architectures: amd64
|
|
signed_by: https://www.mongodb.org/static/pgp/server-{{ mongodb_version }}.asc
|
|
|
|
- name: Add Unifi repository
|
|
deb822_repository:
|
|
name: unifi
|
|
uris: https://www.ui.com/downloads/unifi/debian
|
|
suites: stable
|
|
components: ubiquiti
|
|
architectures: amd64
|
|
signed_by: https://dl.ui.com/unifi/unifi-repo.gpg
|
|
|
|
- name: Install unifi
|
|
package:
|
|
name: unifi
|
|
update_cache: yes
|
|
|
|
- name: Set up nginx site
|
|
template:
|
|
dest: '/etc/nginx/sites-available/unifi.conf'
|
|
src: 'nginx.conf.j2'
|
|
notify: reload nginx
|
|
|
|
- name: Enable nginx site
|
|
file:
|
|
dest: /etc/nginx/sites-enabled/unifi.conf
|
|
src: /etc/nginx/sites-available/unifi.conf
|
|
state: link
|
|
notify: reload nginx
|