diff --git a/roles/ind/downloader/downloader-install.yml b/roles/ind/downloader/downloader-install.yml index daad5c8..2bd473f 100644 --- a/roles/ind/downloader/downloader-install.yml +++ b/roles/ind/downloader/downloader-install.yml @@ -16,6 +16,9 @@ - name: Install-docker.yml - setting up docker include: ../../lib/install-docker.yml + - name: Setup-netbird.yml - setting up netbird mesh vpn + include: ../../lib/setup-netbird.yml + - name: Create grail user user: name: grail diff --git a/roles/lib/setup-netbird.yml b/roles/lib/setup-netbird.yml new file mode 100644 index 0000000..59c8ee9 --- /dev/null +++ b/roles/lib/setup-netbird.yml @@ -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 \ No newline at end of file