ansible.fftdf.supernode/roles/21-unifi/tasks/main.yml

37 lines
1.0 KiB
YAML
Raw Normal View History

2023-04-13 13:30:53 +00:00
---
- name: Install Packages for Unifi APT
ansible.builtin.apt:
name:
- ca-certificates
- apt-transport-https
state: latest
update_cache: yes
- name: Add MongoDB GPG Key
ansible.builtin.get_url:
url: https://www.mongodb.org/static/pgp/server-3.0.asc
dest: /etc/apt/keyrings/mongodb-3.0.asc
- name: Add Unifi GPG Key
ansible.builtin.get_url:
url: https://dl.ui.com/unifi/unifi-repo.gpg
dest: /etc/apt/trusted.gpg.d/unifi-repo.gpg
- name: Add MongoDB repository into sources list using specified filename
ansible.builtin.apt_repository:
repo: "deb [trusted=yes] http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.0 multiverse"
state: present
filename: mongodb
- name: Add Unifi repository into sources list using specified filename
ansible.builtin.apt_repository:
repo: deb https://www.ui.com/downloads/unifi/debian stable ubiquiti
state: present
filename: unifi
- name: Install Unifi via APT
ansible.builtin.apt:
name:
- unifi
state: latest
update_cache: yes