Add ability to set tags in network modules

This adds the `tags` parameter to the network,
subnet, and router modules.

Change-Id: I704b40c44c733a3d4ec93a95d8efcb7ecf6e2a32
Signed-off-by: Austin Jamias <ajamias@redhat.com>
This commit is contained in:
Austin Jamias
2025-11-07 19:06:37 -05:00
parent a178493281
commit dbc6f7d44a
6 changed files with 125 additions and 1 deletions

View File

@@ -31,6 +31,9 @@
gateway_ip: 192.168.0.1
allocation_pool_start: 192.168.0.2
allocation_pool_end: 192.168.0.254
tags:
- foo
- bar
register: subnet
- name: Assert changed
@@ -56,6 +59,9 @@
gateway_ip: 192.168.0.1
allocation_pool_start: 192.168.0.2
allocation_pool_end: 192.168.0.254
tags:
- foo
- bar
register: subnet
- name: Assert not changed
@@ -80,6 +86,8 @@
enable_dhcp: "{{ enable_subnet_dhcp }}"
gateway_ip: 192.168.0.1
cidr: 192.168.0.0/24
tags:
- bar
register: subnet
- name: Verify Subnet info result
@@ -114,6 +122,10 @@
dns_nameservers:
- 8.8.8.7
cidr: 192.168.0.0/24
tags:
- foo
- bar
- baz
register: subnet
- name: Assert changed