26 lines
647 B
YAML
26 lines
647 B
YAML
---
|
|
|
|
- name: 'Fetch repository keys'
|
|
loop:
|
|
- 'https://dl.ui.com/unifi/unifi-repo.gpg'
|
|
- 'https://www.mongodb.org/static/pgp/server-7.0.asc'
|
|
ansible.builtin.apt_key:
|
|
url: '{{ item }}'
|
|
state: present
|
|
|
|
- name: Add repositories
|
|
loop:
|
|
- 'deb [ arch=amd64,arm64 ] https://www.ui.com/downloads/unifi/debian stable ubiquiti'
|
|
- 'deb [ trusted=yes ] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main'
|
|
ansible.builtin.apt_repository:
|
|
repo: '{{ item }}'
|
|
state: present
|
|
|
|
- name: Install packages
|
|
ansible.builtin.apt:
|
|
name:
|
|
- mongodb-org
|
|
- unifi
|
|
state: present
|
|
update_cache: yes
|