mirror of
https://github.com/netbirdio/ansible-netbird.git
synced 2026-05-22 18:43:36 -07:00
address fix
This commit is contained in:
@@ -14,7 +14,7 @@ This collection provides comprehensive management of NetBird resources:
|
||||
- **Setup Keys** - Create enrollment keys for new peers
|
||||
- **Policies** - Define network access rules between groups
|
||||
- **Networks** - Configure network routing with routers and resources
|
||||
- IP/CIDR routing (`10.0.0.0/8`, `192.168.1.0/24`)
|
||||
- IP/CIDR routing (`172.16.0.0/16`, `192.168.1.0/24`)
|
||||
- Domain-based routing (`example.com`, `*.corp.example.com`)
|
||||
- High availability with multiple routers and metrics
|
||||
- **Routes** - Manage legacy routes (deprecated, use Networks instead)
|
||||
@@ -235,7 +235,7 @@ Manage NetBird networks with routers and resources. This module provides full ro
|
||||
metric: 100
|
||||
masquerade: true
|
||||
resources:
|
||||
- address: "10.0.0.0/8"
|
||||
- address: "172.16.0.0/16"
|
||||
name: "internal-range"
|
||||
description: "All internal IPs"
|
||||
groups:
|
||||
@@ -316,7 +316,7 @@ Manage NetBird routes (deprecated API, prefer `netbird_network` with routers/res
|
||||
api_url: "{{ netbird_api_url }}"
|
||||
api_token: "{{ netbird_api_token }}"
|
||||
network_id: "internal-route"
|
||||
network: "10.0.0.0/8"
|
||||
network: "172.16.0.0/16"
|
||||
description: "Route to internal network"
|
||||
peer_id: "gateway-peer-id"
|
||||
metric: 100
|
||||
@@ -501,7 +501,7 @@ The collection includes a role for declarative configuration:
|
||||
metric: 100
|
||||
masquerade: true
|
||||
resources:
|
||||
- address: "10.0.0.0/8"
|
||||
- address: "172.16.0.0/16"
|
||||
name: "internal-range"
|
||||
groups: ["developers-group-id"]
|
||||
- address: "*.internal.example.com"
|
||||
|
||||
+2
-2
@@ -82,7 +82,7 @@ netbird_networks: []
|
||||
# metric: 200
|
||||
# masquerade: true
|
||||
# resources:
|
||||
# - address: "10.0.0.0/8" # Network CIDR
|
||||
# - address: "172.16.0.0/16" # Network CIDR
|
||||
# name: "internal-range"
|
||||
# description: "All internal IPs"
|
||||
# groups: # Who can access this resource
|
||||
@@ -119,7 +119,7 @@ netbird_routes: []
|
||||
# Example:
|
||||
# netbird_routes:
|
||||
# - network_id: "internal-route"
|
||||
# network: "10.0.0.0/8"
|
||||
# network: "172.16.0.0/16"
|
||||
# description: "Route to internal network"
|
||||
# peer_id: "gateway-peer-id"
|
||||
# metric: 100
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
metric: 100
|
||||
masquerade: true
|
||||
resources:
|
||||
- address: "10.0.0.0/8"
|
||||
- address: "172.16.0.0/16"
|
||||
name: "internal-range"
|
||||
description: "All internal IP addresses"
|
||||
groups:
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
checks:
|
||||
peer_network_range_check:
|
||||
ranges:
|
||||
- "10.0.0.0/8"
|
||||
- "172.16.0.0/16"
|
||||
- "192.168.0.0/16"
|
||||
- "172.16.0.0/12"
|
||||
action: "allow"
|
||||
@@ -133,7 +133,7 @@
|
||||
metric: 200
|
||||
masquerade: true
|
||||
resources:
|
||||
- address: "10.0.0.0/8"
|
||||
- address: "172.16.0.0/16"
|
||||
name: "internal-networks"
|
||||
description: "All internal IP ranges"
|
||||
groups: [] # Will be updated with group IDs
|
||||
|
||||
@@ -85,7 +85,7 @@ options:
|
||||
address:
|
||||
description:
|
||||
- Network address, CIDR, or domain name.
|
||||
- Supports direct hosts (1.1.1.1), subnets (10.0.0.0/8), domains (example.com), and wildcards (*.example.com).
|
||||
- Supports direct hosts (1.1.1.1), subnets (172.16.0.0/16), domains (example.com), and wildcards (*.example.com).
|
||||
type: str
|
||||
required: true
|
||||
name:
|
||||
@@ -135,7 +135,7 @@ EXAMPLES = r'''
|
||||
metric: 100
|
||||
masquerade: true
|
||||
resources:
|
||||
- address: "10.0.0.0/8"
|
||||
- address: "172.16.0.0/16"
|
||||
name: "internal-range"
|
||||
description: "All internal IPs"
|
||||
groups:
|
||||
@@ -208,7 +208,7 @@ EXAMPLES = r'''
|
||||
metric: 100
|
||||
masquerade: true
|
||||
resources:
|
||||
- address: "10.0.0.0/8"
|
||||
- address: "172.16.0.0/16"
|
||||
name: "internal-range"
|
||||
groups:
|
||||
- "all-users-group-id"
|
||||
|
||||
@@ -160,7 +160,7 @@ EXAMPLES = r'''
|
||||
checks:
|
||||
peer_network_range_check:
|
||||
ranges:
|
||||
- "10.0.0.0/8"
|
||||
- "172.16.0.0/16"
|
||||
- "192.168.0.0/16"
|
||||
action: "allow"
|
||||
state: present
|
||||
|
||||
@@ -97,7 +97,7 @@ EXAMPLES = r'''
|
||||
api_url: "https://netbird.example.com"
|
||||
api_token: "{{ netbird_token }}"
|
||||
network_id: "internal-route"
|
||||
network: "10.0.0.0/8"
|
||||
network: "172.16.0.0/16"
|
||||
description: "Route to internal network"
|
||||
peer_id: "gateway-peer-id"
|
||||
metric: 100
|
||||
|
||||
Reference in New Issue
Block a user