From 911d88933cb8df607f227098aafbd98281b2db72 Mon Sep 17 00:00:00 2001 From: tolerryan <105945216+tolerryan@users.noreply.github.com> Date: Mon, 29 Sep 2025 22:10:00 -0500 Subject: [PATCH] add netbird role --- roles/ind/downloader/downloader-install.yml | 3 ++ roles/lib/setup-netbird.yml | 33 +++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 roles/lib/setup-netbird.yml 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