ansible-netbird/dominion_solutions/netbird/roles/netbird/README.md

1.1 KiB

Role Name

A role that installs the very basic version of Netbird, utilizing their install scripts.

Requirements

  • curl

Role Variables

  • netbird_setup_key: The key that is used to automate the setup process.
  • netbird_register: A true/false defining whether or not register netbird.

Dependencies

  • None

Example Playbook

---
- name: Install Netbird
  hosts: localhost
  become: true
  vars:
    netbird_setup_key: "{{ lookup('env', 'NETBIRD_SETUP_KEY') }}"
    netbird_register: true
  tasks:
    - name: Check for netbird setup key
      ansible.builtin.fail:
        msg: "netbird_setup_key is required"
      when: netbird_setup_key is not defined

    - name: Install Netbird
      ansible.builtin.include_role:
        name: netbird

    - name: Check Netbird Status
      ansible.builtin.shell: |
        netbird status --detail        

License

MIT

Author Information