Ansible module #446

Open
opened 2025-11-20 05:11:27 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @yarcod on GitHub (Sep 12, 2023).

Is your feature request related to a problem? Please describe.
My setup utilises Ansible to configure all containers in my network, and I haven't found a good/easy way to authenticate them on-the-fly. The Netbird API has made it possible at all, but it is still slightly cumbersome to handle multiple API calls for different scenarios.

Describe the solution you'd like
If the API was wrapped in an Ansible module, it would make adding, changing and/or removing devices easier.

Describe alternatives you've considered
While it is possible to continue using API calls via the uri method, it is, as mentioned, cumbersome, and is also more to keep up to date from a user perspective when the API changes.

Additional context
Since Ansible is built on Python, and writing new modules is also done using Python, it should not be a massive undertaking.

Originally created by @yarcod on GitHub (Sep 12, 2023). **Is your feature request related to a problem? Please describe.** My setup utilises Ansible to configure all containers in my network, and I haven't found a good/easy way to authenticate them on-the-fly. The Netbird API has made it possible at all, but it is still slightly cumbersome to handle multiple API calls for different scenarios. **Describe the solution you'd like** If the API was wrapped in an Ansible module, it would make adding, changing and/or removing devices easier. **Describe alternatives you've considered** While it is possible to continue using API calls via the `uri` method, it is, as mentioned, cumbersome, and is also more to keep up to date from a user perspective when the API changes. **Additional context** Since Ansible is built on Python, and writing new modules is also done using Python, it should not be a massive undertaking.
saavagebueno added the feature-requestintegrationautomation labels 2025-11-20 05:11:27 -05:00
Author
Owner

@jakob1379 commented on GitHub (Jul 15, 2025):

Do you imagine this just a role to configure clients a fullscale netbird management interface?

@jakob1379 commented on GitHub (Jul 15, 2025): Do you imagine this just a role to configure clients a fullscale netbird management interface?
Author
Owner

@yarcod commented on GitHub (Jul 15, 2025):

Do you imagine this just a role to configure clients a fullscale netbird management interface?

My use case for this would be just for device enrollment. Using my admin auth token to access the API and in turn add new devices with some (ephemeral?) key. This way I wouldn't have to care much about what the key actually is, i.e. I don't need to keep track of it someplace else, as I could just regenerate a new key whenever a host needs to be reconfigured.

@yarcod commented on GitHub (Jul 15, 2025): > Do you imagine this just a role to configure clients a fullscale netbird management interface? My use case for this would be just for device enrollment. Using my admin auth token to access the API and in turn add new devices with some (ephemeral?) key. This way I wouldn't have to care much about what the key *actually is*, i.e. I don't need to keep track of it someplace else, as I could just regenerate a new key whenever a host needs to be reconfigured.
Author
Owner

@jakob1379 commented on GitHub (Jul 16, 2025):

there is already a handful of roles out there, the most developed being

https://galaxy.ansible.com/ui/repo/published/dominion_solutions/netbird/

It is already gnu, so its safe to fork, but even easier to endorse by netbird themselves, as to not acquire more technical debt if it is not of interest.

@jakob1379 commented on GitHub (Jul 16, 2025): there is already a handful of roles out there, the most developed being > https://galaxy.ansible.com/ui/repo/published/dominion_solutions/netbird/ It is already gnu, so its safe to fork, but even easier to endorse by netbird themselves, as to not acquire more technical debt if it is not of interest.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#446