[GH-ISSUE #1141] Ansible module #1950

Closed
opened 2026-08-05 00:44:40 -04:00 by saavagebueno · 5 comments
Owner

Originally created by @yarcod on GitHub (Sep 12, 2023).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1141

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). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1141 **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 2026-08-05 00:44:40 -04: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?

<!-- gh-comment-id:3073438604 --> @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.

<!-- gh-comment-id:3075430909 --> @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.

<!-- gh-comment-id:3077190906 --> @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.
Author
Owner

@ben-ba commented on GitHub (Jan 30, 2026):

The linked ansible collection is official linked on the netbird site;
https://netbird.io/integrations under IaC

<!-- gh-comment-id:3822711886 --> @ben-ba commented on GitHub (Jan 30, 2026): The linked ansible collection is official linked on the netbird site; https://netbird.io/integrations under IaC
Author
Owner

@PizzaLovingNerd commented on GitHub (May 28, 2026):

Closing, as this has been implemented.

<!-- gh-comment-id:4569179389 --> @PizzaLovingNerd commented on GitHub (May 28, 2026): Closing, as this has been implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#1950