1
This commit is contained in:
18
01_azure.yml
Normal file
18
01_azure.yml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
- name: Azure Create RG
|
||||||
|
hosts: localhost
|
||||||
|
connection: local
|
||||||
|
vars:
|
||||||
|
user: alex
|
||||||
|
tasks:
|
||||||
|
- name: Create resource group
|
||||||
|
azure.azcollection.azure_rm_resourcegroup:
|
||||||
|
name: "webserver_{{ user }}"
|
||||||
|
location: northeurope
|
||||||
|
tags:
|
||||||
|
solution: "webserver_{{ user }}"
|
||||||
|
delete: ansibletraining
|
||||||
|
register: rg
|
||||||
|
- name: Show RG
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: rg
|
||||||
Reference in New Issue
Block a user