This Ansible role contains repeatable automation for deploying and removing a VNET and a subnet on Azure.
Creates a virtual network in an Azure resource group.
The following variables are used during deployment and can be configured as extra vars at deploy time if you require something other than the defaults.
---
region: eastus
resource_group: rg
route_table_name: route-table
vnet_name: vnet
vnet_cidr: 10.0.200.0/23
subnet_name: subnet
subnet_cidr: 10.0.200.0/24
The delete vm task removes VNET based on the resources created in the create
task.
---
resource_group: rh
vm_name: rhel9-test
nic_name: rhel9-test-nic
network_sec_group_name: rhel9-test-sg
public_ip_name: rhel9-test-public-ip