mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07: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:
parent
9fb04d20e1
commit
fef5f01b11
2 changed files with 33 additions and 1 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue