mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-07-28 10:44:29 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user