mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
adding possibility to specify resource group for referred virtual net… (#36768)
* adding possibility to specify resource group for referred virtual network * fixed sanity issues * removed trailing whitespace * added test * fixed documentation * try to fix unstable test * Tidied up the description of virtual_network_resource_group
This commit is contained in:
committed by
Jordan Borean
parent
9fb04d20e1
commit
fef5f01b11
@@ -28,6 +28,24 @@
|
||||
that:
|
||||
- output.changed
|
||||
|
||||
- name: Create NIC using virtual_network_resource_group parameter
|
||||
azure_rm_networkinterface:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: testnic001rg
|
||||
virtual_network: testnic001
|
||||
virtual_network_resource_group: "{{ resource_group_secondary }}"
|
||||
subnet: testnic001
|
||||
public_ip_name: testnic001
|
||||
public_ip_allocation_method: Static
|
||||
security_group: testnic001
|
||||
register: output
|
||||
|
||||
- name: Delete NIC
|
||||
azure_rm_networkinterface:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: testnic001rg
|
||||
state: absent
|
||||
|
||||
- name: Create NIC
|
||||
azure_rm_networkinterface:
|
||||
resource_group: "{{ resource_group }}"
|
||||
|
||||
Reference in New Issue
Block a user