You've already forked ansible-netbird
mirror of
https://github.com/netbirdio/ansible-netbird.git
synced 2026-05-22 18:43:36 -07:00
2041cd2d89
Changes module behavior so that omitting auto_groups, peers, or similar list fields on update preserves the existing values instead of wiping them to []. Modules changed: - netbird_setup_key: auto_groups default [] -> None, preserve on update - netbird_group: peers default [] -> None, preserve on update, normalize peer dicts to IDs - netbird_user: auto_groups default [] -> None, preserve on update Also: - Reimplement get_current_user() since /api/users/me does not exist. Now lists users and matches by is_current flag, with explicit error on multi-user deployments without the flag. - Configure role: use default(omit) for setup key auto_groups so the module-level preservation works through the role. - Configure role: conditional auto_groups resolution (skip when auto_groups not defined in YAML config). - Configure role: DNS zone distribution_groups now handles both group names and raw IDs (falls back to original value when not found in group_ids map). - Updated DOCUMENTATION strings to remove stale default: [] and document preservation behavior.