add netbird role
This commit is contained in:
33
roles/lib/setup-netbird.yml
Normal file
33
roles/lib/setup-netbird.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
- name: Install required packages
|
||||
apt:
|
||||
name:
|
||||
- curl
|
||||
- gnupg
|
||||
- ca-certificates
|
||||
state: present
|
||||
update_cache: no
|
||||
|
||||
- name: Add repository with key
|
||||
ansible.builtin.deb822_repository:
|
||||
name: netbird
|
||||
types: [deb]
|
||||
uris: "https://pkgs.netbird.io/debian"
|
||||
components: [main]
|
||||
signed_by: https://pkgs.netbird.io/debian/public.key
|
||||
state: present
|
||||
enabled: true
|
||||
|
||||
- name: Install netbird
|
||||
apt:
|
||||
name:
|
||||
- netbird
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
|
||||
- name: Enable netbird service
|
||||
systemd:
|
||||
name: netbird
|
||||
state: start
|
||||
enabled: yes
|
||||
Reference in New Issue
Block a user