add azure

This commit is contained in:
willtome
2022-06-09 13:45:47 -04:00
parent e9282c3c09
commit 9b7ab0915e
7 changed files with 77 additions and 6 deletions

View File

@@ -1,6 +1,14 @@
---
vm_blueprint_providers:
- aws
- azure
aws_image_filter: 'Windows_Server-2019-English-Core-Base*'
aws_instance_size: t3.medium
aws_userdata_template: aws_windows_userdata
aws_userdata_template: aws_windows_userdata
az_vm_os_type: Windows
az_vm_size: Standard_DS1_v2
az_vm_image:
offer: WindowsServer
publisher: MicrosoftWindowsServer
sku: 2022-Datacenter
version: latest

View File

@@ -12,4 +12,4 @@
include_role:
name: "demo.cloud.aws"
tasks_from: destroy_vm
when: "'cloud_aws' in group_names"
when: "'cloud_aws' in group_names or 'cloud_azure' in group_names"

View File

@@ -35,6 +35,23 @@ controller_inventory_sources:
- key: platform
prefix: os
- name: Azure Inventory
organization: Default
source: azure_rm
inventory: Workshop Inventory
credential: Azure
overwrite: true
source_vars:
hostnames:
- tags.Name
- default
keyed_groups:
- key: os_profile.system
prefix: os
groups:
cloud_azure: true
controller_templates:
- name: Cloud / Create Infra
job_type: run
@@ -58,6 +75,7 @@ controller_templates:
required: true
choices:
- aws
- azure
- question_name: AWS Public Key (only required for aws provider)
type: textarea
required: false
@@ -93,6 +111,7 @@ controller_templates:
required: true
choices:
- aws
- azure
- question_name: Blueprint
type: multiplechoice
variable: vm_blueprint