Compare commits

...

3 Commits

Author SHA1 Message Date
d4661682b5 add netbird_peer to dns servers 2026-04-17 17:46:43 -06:00
0256e66d71 init netbird peer 2026-04-17 17:45:47 -06:00
fbd335a39b add netbird version and sha 2026-04-17 17:45:35 -06:00
3 changed files with 38 additions and 0 deletions

View File

@@ -4,3 +4,4 @@
roles:
- common
- unbound
- netbird_peer

View File

@@ -1,3 +1,6 @@
netbird_version: "0.68.3"
netbird_sha256: "a3ba352f2b2bfbcd1bf157257b3b1fbe4c9d21dee2a7cb15e9c36b2a092563d9 "
private_domains:
- name: jthan.io
records:

View File

@@ -0,0 +1,34 @@
- name: Download and verify the netbird archive
get_url:
url: "https://github.com/netbirdio/netbird/releases/download/v{{ netbird_version }}/netbird_{{ netbird_version }}_linux_{{ ansible_facts['architecture'] }}.tar.gz"
dest: "/tmp/netbird-{{ netbird_version }}.linux-amd64.tar.gz"
checksum: "sha256:{{ netbird_sha256 }}"
register: download_result
- name: Unarchive netbird binary
unarchive:
src: "{{ download_result.dest }}"
dest: "/tmp/netbird_{{ netbird_version }}"
remote_src: true # Indicates the source file is on the remote host
owner: root
group: root
mode: 0755
- name: Copy netbird binary to /usr/local/bin
copy:
src: "/tmp/netbird_{{ netbird_version }}/netbird"
dest: "/usr/local/bin/netbird-{{ netbird_version }}"
owner: root
group: root
mode: '0755'
remote_src: yes
- name: Create netbird binary symlink
file:
src: "/usr/local/bin/netbird-{{ netbird_version }}"
dest: "/usr/local/bin/netbird"
state: link
owner: root
group: root
mode: '0755' # Permissions for the target file
force: yes