Skip to content

Commit

Permalink
Add netbird play (#424)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored May 31, 2024
1 parent 32f9c72 commit 3e062ef
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions playbooks/infrastructure/netbird.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
- name: Group hosts based on configuration
hosts: all
gather_facts: false

tasks:
- name: Group hosts based on enabled services
ansible.builtin.group_by:
key: "{{ item }}"
with_items:
- enable_netbird_{{ enable_netbird | default('true') | bool }}
tags: always

- name: Apply role netbird
hosts:
- "{{ hosts_netbird|default('netbird') }}"
- "&enable_netbird_True"
serial: "{{ osism_serial['netbird']|default(osism_serial_default)|default(0) }}"
strategy: "{{ osism_strategy|default('linear') }}"

roles:
- role: osism.services.netbird

0 comments on commit 3e062ef

Please sign in to comment.