ansible-netbird/roles/netbird
Mark Horninger ef656d64ee
Mjh/adding inventory plugin (#4)
* WIP! Getting the netbird api up

* Adding the netbird inventory.

* Added sanity tests

* Fixed the content in the code of conduct and contributing folders.

* Adedd MIT License

* Now passing ansible sanity tests

* Reorganized the project

* Added import plugins file

* Back to passing sanity tests after the giant rearranging

* Now passing the basic unit tests

* Added unit tests github action

* Fixed the unit tests call

* Changing to the GPL v3 License

* Added pytest-xdist

* Making the sanity tests happy again

* Fix the message that's in here.

* Added filtering for disconnected peers

* Cleanup

* Getting closer to where I want to be

* WIP! Fixed to get the tests working again, broke again

* Fixed sanity tests

* WIP! Got the tests corrected to fill the proper vars in

* WIP! Added more processing.  Getting there, but I want to go watch Krapopolis.

* WIP! debugging nuances around the groups

* Updated licensing to reflect what is actually going on.

* Finished the entire inventory plugin
2024-02-23 16:28:51 -05:00
..
defaults Mjh/adding inventory plugin (#4) 2024-02-23 16:28:51 -05:00
handlers Mjh/adding inventory plugin (#4) 2024-02-23 16:28:51 -05:00
meta Mjh/adding inventory plugin (#4) 2024-02-23 16:28:51 -05:00
tasks Mjh/adding inventory plugin (#4) 2024-02-23 16:28:51 -05:00
tests Mjh/adding inventory plugin (#4) 2024-02-23 16:28:51 -05:00
vars Mjh/adding inventory plugin (#4) 2024-02-23 16:28:51 -05:00
README.md Mjh/adding inventory plugin (#4) 2024-02-23 16:28:51 -05:00

README.md

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