Skip to content
Open

V2 #4

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
14bb9a5
Create 08-create_cent_os7_vm.yml
tux1980 Nov 9, 2022
d61b930
Update 08-create_cent_os7_vm.yml
tux1980 Nov 9, 2022
58639d9
Update 08-create_cent_os7_vm.yml
tux1980 Nov 9, 2022
f561136
Update and rename 08-create_cent_os7_vm.yml to 08-create_cent_os8_vm.yml
tux1980 Nov 14, 2022
3d9b546
Update 08-create_cent_os8_vm.yml
tux1980 Nov 14, 2022
42fc3df
Update 08-create_cent_os8_vm.yml
tux1980 Nov 14, 2022
9006d3f
Create 09-create_cent_os8_loop_vm.yml
tux1980 Nov 24, 2022
42c6c1b
Update 09-create_cent_os8_loop_vm.yml
tux1980 Nov 24, 2022
2933cc4
Update 08-create_cent_os8_vm.yml
tux1980 Nov 24, 2022
02bf915
Update 09-create_cent_os8_loop_vm.yml
tux1980 Nov 24, 2022
a51af01
Update 09-create_cent_os8_loop_vm.yml
tux1980 Nov 24, 2022
b6e474c
Update 09-create_cent_os8_loop_vm.yml
tux1980 Nov 24, 2022
f639bf9
Update 09-create_cent_os8_loop_vm.yml
tux1980 Nov 24, 2022
5f4a192
Update 09-create_cent_os8_loop_vm.yml
tux1980 Nov 24, 2022
cb6a136
Update 09-create_cent_os8_loop_vm.yml
tux1980 Nov 24, 2022
f435be5
Update 09-create_cent_os8_loop_vm.yml
tux1980 Nov 24, 2022
de6552b
Update 09-create_cent_os8_loop_vm.yml
tux1980 Nov 29, 2022
eeb7a4c
Update 08-create_cent_os8_vm.yml
tux1980 Dec 11, 2023
d523982
Rename 08-create_cent_os8_vm.yml to 08-create_rhel93_boys_vm.yml
tux1980 Dec 11, 2023
0209ed9
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 11, 2023
a221c4e
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 11, 2023
220b091
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
e6a1464
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
30a0e95
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
1cba5d6
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
e052376
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
5eaf800
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
1f2311c
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
00b6b25
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
8a5048e
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
81a1411
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
981a9d8
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
71173a6
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
228baa5
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
2135b89
Update 08-create_rhel93_mp_vm.yml
tux1980 Dec 12, 2023
599eed2
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
f547319
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
f58e1b7
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
568188e
Update 08-create_rhel93_boys_vm.yml
tux1980 Dec 12, 2023
852239c
Merge branch 'ansible-cloud:main' into main
tux1980 Feb 13, 2024
499ac3e
Update 05-create_network_security_group.yml
tux1980 Feb 13, 2024
5a243ac
Update 08-create_rhel93_boys_vm.yml
tux1980 Feb 13, 2024
87654c4
Update 05-create_network_security_group.yml
tux1980 Feb 13, 2024
80e25bd
Update 06-create_virtual_network_interface_card.yml
tux1980 Feb 13, 2024
a8b0f43
Update 06-create_virtual_network_interface_card.yml
tux1980 Feb 13, 2024
fefdf60
Update 04-create_public_ip_address.yml
tux1980 Feb 13, 2024
33e7364
Update 04-create_public_ip_address.yml
tux1980 Feb 13, 2024
f2c0bd8
Update 04-create_public_ip_address.yml
tux1980 Feb 13, 2024
3f8ce7a
Update 06-create_virtual_network_interface_card.yml
tux1980 Feb 13, 2024
c3c2a0d
Update 04-create_public_ip_address.yml
tux1980 Feb 13, 2024
b5ce850
Update 06-create_virtual_network_interface_card.yml
tux1980 Feb 13, 2024
7c45e46
Update 08-create_rhel93_boys_vm.yml
tux1980 Feb 13, 2024
fc0828b
mach
Feb 14, 2024
d147773
Update 01-create_resource_group.yml
tux1980 Feb 14, 2024
6c0760b
Update 02-create_virtual_network.yml
tux1980 Feb 14, 2024
5adaa69
Update 03-add_subnet.yml
tux1980 Feb 14, 2024
c5de31a
Update 04-create_public_ip_address.yml
tux1980 Feb 14, 2024
a58954b
Update 05-create_network_security_group.yml
tux1980 Feb 14, 2024
559312e
Update 06-create_virtual_network_interface_card.yml
tux1980 Feb 14, 2024
bbde239
Update 07-create_windows_2022_vm.yml
tux1980 Feb 14, 2024
245e4f2
Update and rename 08-create_rhel93_boys_vm.yml to 08-create_rhel93_vm…
tux1980 Feb 14, 2024
245d034
Delete workflow/07-create_windows_2022_vm_instruqt.yml
tux1980 Feb 14, 2024
d33d89c
Update 09-create_cent_os8_loop_vm.yml
tux1980 Feb 14, 2024
fceeade
Update vars.yml
tux1980 Feb 14, 2024
2989925
Update 01-create_resource_group.yml
tux1980 Feb 14, 2024
4391e2d
Update 01-create_resource_group.yml
tux1980 Feb 14, 2024
49ac355
Rename vars.yml to main.yml
tux1980 Feb 14, 2024
e72677d
Update 01-create_resource_group.yml
tux1980 Feb 14, 2024
da9d0b2
Update 01-create_resource_group.yml
tux1980 Feb 14, 2024
130217f
Update 01-create_resource_group.yml
tux1980 Feb 14, 2024
6eadd25
Update create_resource_group.yml
tux1980 Feb 14, 2024
f090f06
Update destroy_resource_group.yml
tux1980 Feb 14, 2024
852f67f
test
Feb 14, 2024
18ade6a
Update 02-create_virtual_network.yml
tux1980 Feb 14, 2024
dd0c646
Update 03-add_subnet.yml
tux1980 Feb 14, 2024
241d0ac
Update 04-create_public_ip_address.yml
tux1980 Feb 14, 2024
10df440
Update 04-create_public_ip_address.yml
tux1980 Feb 14, 2024
1aab32f
Update 05-create_network_security_group.yml
tux1980 Feb 14, 2024
5ace2e7
Update 06-create_virtual_network_interface_card.yml
tux1980 Feb 14, 2024
38d778e
Update 07-create_windows_2022_vm.yml
tux1980 Feb 14, 2024
802ca1f
Update main.yml
tux1980 Feb 14, 2024
020ae13
Update main.yml
tux1980 Feb 14, 2024
6007da0
Update main.yml
tux1980 Feb 14, 2024
21ffafd
Update main.yml
tux1980 Feb 14, 2024
c959f57
Update main.yml
tux1980 Feb 14, 2024
425b763
Update main.yml
tux1980 Feb 14, 2024
5914b8c
Update 06-create_virtual_network_interface_card.yml
tux1980 Feb 14, 2024
642d032
Update main.yml
tux1980 Feb 14, 2024
f1d44df
Update 09-create_cent_os8_loop_vm.yml
tux1980 Jul 3, 2024
32bee5a
Update 09-create_cent_os8_loop_vm.yml
tux1980 Jul 3, 2024
7465e74
Update 09-create_cent_os8_loop_vm.yml
tux1980 Jul 3, 2024
eba0ab8
Update 09-create_cent_os8_loop_vm.yml
tux1980 Jul 3, 2024
fa33443
Update 09-create_cent_os8_loop_vm.yml
tux1980 Jul 3, 2024
9fd8b57
Update 09-create_cent_os8_loop_vm.yml
tux1980 Jul 3, 2024
98d9597
Update 09-create_cent_os8_loop_vm.yml
tux1980 Jul 3, 2024
41a73f8
Update 09-create_cent_os8_loop_vm.yml
tux1980 Jul 3, 2024
cdb101f
Update 09-create_cent_os8_loop_vm.yml
tux1980 Jul 3, 2024
30042bd
Update 09-create_cent_os8_loop_vm.yml
tux1980 Jul 3, 2024
fffcc00
Update main.yml
tux1980 Jul 11, 2024
9f8c94c
Update main.yml
tux1980 Jul 11, 2024
f453384
Update 08-create_rhel93_vm.yml
tux1980 Jul 11, 2024
cdabe6d
Update 08-create_rhel93_vm.yml
tux1980 Jul 11, 2024
b1c5a14
Update 08-create_rhel93_vm.yml
tux1980 Jul 11, 2024
a7eb819
Update 08-create_rhel93_vm.yml
tux1980 Jul 11, 2024
9c7ec58
Update 08-create_rhel93_vm.yml
tux1980 Jul 11, 2024
7f1040e
Update 08-create_rhel93_vm.yml
tux1980 Jul 11, 2024
a047886
Update 08-create_rhel93_vm.yml
tux1980 Jul 11, 2024
021351f
Update 06-create_virtual_network_interface_card.yml
tux1980 Jul 11, 2024
011cc28
Update 06-create_virtual_network_interface_card.yml
tux1980 Jul 11, 2024
dc3c83f
Update 06-create_virtual_network_interface_card.yml
tux1980 Jul 11, 2024
5661b6e
Update 06-create_virtual_network_interface_card.yml
tux1980 Jul 11, 2024
450f1c5
Update main.yml
tux1980 Jul 11, 2024
ecc0081
Update 06-create_virtual_network_interface_card.yml
tux1980 Jul 11, 2024
d869d5d
Update main.yml
tux1980 Jul 11, 2024
9ed2905
Update 04-create_public_ip_address.yml
tux1980 Jul 11, 2024
bef2da2
Update 05-create_network_security_group.yml
tux1980 Jul 11, 2024
57769f5
Update 06-create_virtual_network_interface_card.yml
tux1980 Jul 11, 2024
5c39255
Update 08-create_rhel93_vm.yml
tux1980 Jul 11, 2024
f0cbc9c
Update 04-create_public_ip_address.yml
tux1980 Jul 11, 2024
55dfbe1
Update 04-create_public_ip_address.yml
tux1980 Jul 11, 2024
4592a3a
Update 06-create_virtual_network_interface_card.yml
tux1980 Jul 11, 2024
14fe920
Update 08-create_rhel93_vm.yml
tux1980 Jul 11, 2024
acd249b
Update 04-create_public_ip_address.yml
tux1980 Jul 11, 2024
ad587d5
Update 04-create_public_ip_address.yml
tux1980 Jul 11, 2024
7dc17b4
Update main.yml
tux1980 Jul 12, 2024
e30c630
Update 02-create_virtual_network.yml
tux1980 Jul 12, 2024
4535f1d
Update 03-add_subnet.yml
tux1980 Jul 12, 2024
9206836
Create destroy_resource_group.yml
tux1980 Jul 12, 2024
e2a6cf8
Create destroy_rg_aap2_trier.yaml
tux1980 Jul 12, 2024
283f9ef
Update 08-create_rhel93_vm.yml
tux1980 Jul 12, 2024
4af4084
Update 03-add_subnet.yml
tux1980 Jul 12, 2024
4e4129c
Update 08-create_rhel93_vm.yml
tux1980 Jul 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions destroy_resource_group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- name: Destroy Demo Resources
hosts: localhost
connection: local
gather_facts: false

vars_files:
- vars/main.yml

tasks:
- name: Destroy resource group
azure.azcollection.azure_rm_resourcegroup:
name: "{{ resource_group_name }}"
location: "{{ region }}"
state: absent
force_delete_nonempty: true
4 changes: 4 additions & 0 deletions project/create_resource_group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
hosts: localhost
connection: local
gather_facts: false

vars_files:
- vars/main.yml

tasks:
- name: Create resource group
azure.azcollection.azure_rm_resourcegroup:
Expand Down
4 changes: 4 additions & 0 deletions project/destroy_resource_group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
hosts: localhost
connection: local
gather_facts: false

vars_files:
- vars/main.yml

tasks:
- name: Destroy resource group
azure.azcollection.azure_rm_resourcegroup:
Expand Down
34 changes: 34 additions & 0 deletions project/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
resource_group_name: azure-demo
region: eastus
vnet_cidr: 10.0.0.0/16
subnet_cidr: 10.0.1.0/24
vnet_name: demo_vnet
subnet_name: demo_subnet
network_sec_group_name: linux_sec_group
linux_vm_name: rhel93-01
linux_vm_name1: rhel93-02
linux_vm_size: Standard_DS1_v2
win_public_ip_name: win_public_ip
linux_public_ip_name: linux_public_ip
linux_nic_name: rhel01_demo_nic
linux1_nic_name: rhel02_demo_nic
linux_admin_user: wmarx
linux_admin_password: redhat123!
linux_vm_sku: 9-lvm-gen2
offer_rhel: RHEL
publisher_redhat: redhat
path_public_key: /home/wmarx/.ssh/authorized_keys
public_ssh_key: >-
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQCdFRMQVARy5txGGcFB9+39bkoVSbYVGZxOKItQjbI9i/jtlxlAqLIHdRbgJWvk5rl1hmDimSRgyoHaWU30yClbgqe3X830Viv1lMo71WAdXl/DnryDdLNMNIFryUQKH4o3Qlne01cVc8nI/wAMzwA3z0sMluYRwik+U0+DyS2nhyPpNFYhvrFMm02qikuxM3/c04l2Umt/d2kwNVt0ewTSlXo3NsP9/ic6KmzXMcuvt/248CRsHUzoRRBgbE9RjhntXeGFNHubPrj/AD5VPBGLO3oGCAX0rIkCD7nxQQLkGK4bUEOkT1x9APoWB//0oV5chijUFaYoPZIcbP+tHprR
disk_type: StandardSSD_LRS
api_version_name: latest
ms_terms_accepted: 'true'
os_version_azure: Linux
version_rhel: latest
started_the_vm: 'true'
open_ports_vm:
- 22
- 443
- 80
4 changes: 4 additions & 0 deletions workflow/01-create_resource_group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
- name: Create the Resource Group in the specified region
hosts: localhost
connection: local

vars_files:
- vars/main.yml

tasks:
- name: Create resource group
azure_rm_resourcegroup:
Expand Down
7 changes: 6 additions & 1 deletion workflow/02-create_virtual_network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
- name: Create the Virtual Network
hosts: localhost
connection: local

vars_files:
- vars/main.yml

tasks:

- name: Create virtual network
azure_rm_virtualnetwork:
location: "{{ region }}"
resource_group: "{{ resource_group_name }}"
name: "{{ vnet_name }}"
address_prefixes: "{{ vnet_cidr }}"


4 changes: 4 additions & 0 deletions workflow/03-add_subnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
- name: Add the Subnet to Virtual Network
hosts: localhost
connection: local

vars_files:
- vars/main.yml

tasks:

- name: Add subnet
Expand Down
23 changes: 8 additions & 15 deletions workflow/04-create_public_ip_address.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,15 @@
- name: Create the Public IP Address
hosts: localhost
connection: local

vars_files:
- vars/main.yml

tasks:

- name: Create public IP address
# Public IP Linux VM
- name: Create public IP address for Linux
azure_rm_publicipaddress:
location: "{{ region }}"
resource_group: "{{ resource_group_name }}"
allocation_method: Static
name: "{{ win_public_ip_name }}"
register: output_ip_address

- name: Dump public IP for VM which will be created
debug:
msg: "The public IP is {{ output_ip_address.state.ip_address }}"

- name: Set Stat for Ansible Controller
set_stats:
data:
azure_vm_public_ip: "{{ output_ip_address.state.ip_address }}"
per_host: false

name: "{{ linux_public_ip_name }}"
17 changes: 17 additions & 0 deletions workflow/05-create_network_security_group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
- name: Create the Network Security Group
hosts: localhost
connection: local

vars_files:
- vars/main.yml

tasks:

- name: Create Network Security Group that allows SSH and RDP
azure_rm_securitygroup:
location: "{{ region }}"
resource_group: "{{ resource_group_name }}"
name: "{{ network_sec_group_name }}"
rules:
Expand All @@ -21,4 +26,16 @@
access: Allow
priority: 1002
direction: Inbound
- name: HTTPS
protocol: Tcp
destination_port_range: 443
access: Allow
priority: 1003
direction: Inbound
- name: HTTP
protocol: Tcp
destination_port_range: 80
access: Allow
priority: 1004
direction: Inbound

29 changes: 25 additions & 4 deletions workflow/06-create_virtual_network_interface_card.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,34 @@
- name: Create the Virtual Network Interface card
hosts: localhost
connection: local
tasks:

vars_files:
- vars/main.yml

- name: Create virtual network interface card
tasks:
- name: Create a Linux virtual network interface card
azure_rm_networkinterface:
location: "{{ region }}"
resource_group: "{{ resource_group_name }}"
name: "{{ linux_nic_name }}"
virtual_network: "{{ vnet_name }}"
subnet: "{{ subnet_name }}"
security_group: "{{ network_sec_group_name }}"
ip_configurations:
- name: ipconfig2
public_ip_address_name: "{{ linux_public_ip_name }}"
primary: true

- name: Create a second Linux virtual network interface card for 2 second RHEL VM
azure_rm_networkinterface:
location: "{{ region }}"
resource_group: "{{ resource_group_name }}"
name: "{{ win_nic_name }}"
name: "{{ linux1_nic_name }}"
virtual_network: "{{ vnet_name }}"
subnet: "{{ subnet_name }}"
public_ip_name: "{{ win_public_ip_name }}"
name: "{{ linux_public_ip_name1 }}"
security_group: "{{ network_sec_group_name }}"
ip_configurations:
- name: ipconfig3
public_ip_address_name: "{{ linux_public_ip_name1 }}"
primary: true
4 changes: 4 additions & 0 deletions workflow/07-create_windows_2022_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
- name: Create the Azure Windows Virtual Machine
hosts: localhost
connection: local

vars_files:
- vars/main.yml

tasks:

- name: Create VM
Expand Down
25 changes: 0 additions & 25 deletions workflow/07-create_windows_2022_vm_instruqt.yml

This file was deleted.

58 changes: 58 additions & 0 deletions workflow/08-create_rhel93_vm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
- name: Create the Azure Linux Virtual Machine
hosts: localhost
connection: local

vars_files:
- vars/main.yml

tasks:

- name: Create VM RHEL01
azure_rm_virtualmachine:
name: "{{ linux_vm_name_survey }}"
location: "{{ region }}"
resource_group: "{{ resource_group_name }}"
vm_size: "{{ linux_vm_size }}"
admin_username: "{{ linux_admin_user }}"
admin_password: "{{ linux_admin_password }}"
managed_disk_type: "{{ disk_type }}"
network_interfaces: "{{ linux_nic_name }}"
open_ports: "{{ open_ports_vm }}"
ssh_public_keys:
- path: "{{ path_public_key }}"
key_data: "{{ public_ssh_key }}"
image:
started: "{{ started_the_vm }}"
offer: "{{ offer_rhel }}"
publisher: "{{ publisher_redhat }}"
sku: "{{ linux_vm_sku }}"
version: "{{ version_rhel }}"
#####################################
#plan:
#name: "RHEL Plan"
#product: "RHEL"
#publisher: "RedHat"

# - name: Create VM RHEL02
# azure_rm_virtualmachine:
# location: "{{ region }}"
# resource_group: "{{ resource_group_name }}"
# name: "{{ linux_vm_name1 }}"
# vm_size: "{{ linux_vm_size }}"
# admin_username: "{{ linux_admin_user }}"
# admin_password: "{{ linux_admin_password }}"
# managed_disk_type: "{{ disk_type }}"
# network_interfaces: "{{ linux1_nic_name }}"
# open_ports: "{{ open_ports_vm }}"
# ssh_public_keys:
# - path: "{{ path_public_key }}"
# key_data: "{{ public_ssh_key }}"
# image:
# started: "{{ started_the_vm }}"
# offer: "{{ offer_rhel }}"
# publisher: "{{ publisher_redhat }}"
# sku: "{{ linux_vm_sku }}"
# version: "{{ version_rhel }}"


58 changes: 58 additions & 0 deletions workflow/09-create_cent_os8_loop_vm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
- name: Create the Azure Linux Virtual Machine
hosts: localhost
vars:
vm_names:
- srvcentos01
- srvcentos02
- srvcentos03

connection: local

vars_files:
- vars/main.yml

tasks:

- name: Create resource group
azure_rm_resourcegroup:
name: "{{ resource_group_name }}"
location: "{{ region }}"

- name: Create virtual network interface card
azure_rm_networkinterface:
resource_group: "{{ resource_group_name }}"
name: "{{ item.if }}"
virtual_network: "{{ vnet_name }}"
subnet: "{{ subnet_name }}"
# public_ip_name: "{{ item.ip }}"
name: "{{ item }}"
security_group: "{{ network_sec_group_name }}"
loop:
- if_srvcentos01
- if_srvcentos02
- if_srvcentos03


- name: Create VM
azure_rm_virtualmachine:
resource_group: "{{ resource_group_name }}"
name: "{{ item.name }}"
os_type: Linux
vm_size: "{{ linux_vm_size }}"
admin_username: "{{ linux_admin_user }}"
admin_password: "{{ linux_admin_password }}"
managed_disk_type: "{{ disk_type }}"
network_interfaces: "{{ item.linux_nic_name }}"
ssh_public_keys:
- path: "{{ path_public_key }}"
key_data: "{{ public_ssh_key }}"
image:
offer: CentOS
publisher: OpenLogic
sku: 8_5-gen2
version: latest
loop:
- { name: 'srvcentos01', linux_nic_name: 'if_srvcentos01' }
- { name: 'srvcentos02', linux_nic_name: 'if_srvcentos02' }
- { name: 'srvcentos03', linux_nic_name: 'if_srvcentos03' }
16 changes: 16 additions & 0 deletions workflow/destroy_rg_aap2_trier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- name: Destroy Demo Resources
hosts: localhost
connection: local
gather_facts: false

vars_files:
- vars/main.yml

tasks:
- name: Destroy resource group
azure.azcollection.azure_rm_resourcegroup:
name: "{{ resource_group_name }}"
location: "{{ region }}"
state: absent
force_delete_nonempty: true
Loading