110 lines
3.0 KiB
YAML
110 lines
3.0 KiB
YAML
---
|
|
user_message: |
|
|
Be sure to update the public_key extra_var on the 'Azure RHEL 8 VM' Template
|
|
The Azure Infrastructure credential must be updated with your service principal credentials to access Azure API
|
|
azure_public_key: undef
|
|
controller_components:
|
|
- projects
|
|
- credentials
|
|
- inventories
|
|
- inventory_sources
|
|
- job_templates
|
|
|
|
controller_projects:
|
|
- name: Azure Repo
|
|
description: Azure Demo Repo
|
|
organization: Default
|
|
scm_type: git
|
|
scm_url: https://github.com/ansible-cloud/azure.git
|
|
|
|
controller_credentials:
|
|
- name: Azure Infrastructure
|
|
credential_type: Microsoft Azure Resource Manager
|
|
organization: Default
|
|
inputs:
|
|
subscription: REPLACEME
|
|
|
|
controller_inventories:
|
|
- name: Workshop Inventory
|
|
organization: Default
|
|
|
|
controller_inventory_sources:
|
|
- name: Azure Inventory
|
|
inventory: Workshop Inventory
|
|
source: azure_rm
|
|
credential: Azure Infrastructure
|
|
overwrite: true
|
|
update_on_launch: true
|
|
source_vars:
|
|
include_vm_resource_groups:
|
|
- ansible_test
|
|
|
|
hostnames:
|
|
- computer_name
|
|
- default
|
|
|
|
keyed_groups:
|
|
- prefix: azure_loc
|
|
key: location
|
|
- prefix: azure_os
|
|
key: os_profile.system
|
|
|
|
controller_templates:
|
|
- name: "AZURE / RHEL 8 VM"
|
|
job_type: run
|
|
inventory: "Workshop Inventory"
|
|
project: "Azure Repo"
|
|
playbook: "project/create_rhel_vm_demo.yml"
|
|
credentials:
|
|
- "Azure Infrastructure"
|
|
extra_vars:
|
|
resource_group_name: "ansible_test"
|
|
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: "demo_sec_group"
|
|
rhel_admin_user: "azureuser"
|
|
rhel_public_ip_name: "rhel_demo_ip"
|
|
rhel_nic_name: "rhel_demo_nic"
|
|
rhel_vm_name: "RHEL8-ansible"
|
|
rhel_vm_size: "Standard_DS1_v2"
|
|
rhel_vm_sku: "8_5"
|
|
rhel_public_key: "{{ azure_public_key }}"
|
|
survey_public_ip: "True"
|
|
|
|
- name: "AZURE / Windows VM"
|
|
job_type: run
|
|
inventory: "Workshop Inventory"
|
|
project: "Azure Repo"
|
|
playbook: "project/create_windows_vm_demo.yml"
|
|
credentials:
|
|
- "Azure Infrastructure"
|
|
extra_vars:
|
|
resource_group_name: "ansible_test"
|
|
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: "demo_sec_group"
|
|
win_vm_name: "WIN-ansible"
|
|
win_vm_size: "Standard_DS1_v2"
|
|
win_vm_sku: "2022-Datacenter"
|
|
win_public_ip_name: "win_demo_ip"
|
|
win_nic_name: "win_demo_nic"
|
|
win_admin_user: "azureuser"
|
|
win_admin_password: "AnsibleTest@123"
|
|
|
|
- name: "AZURE / Destroy Resource Group"
|
|
job_type: run
|
|
inventory: "Workshop Inventory"
|
|
project: "Azure Repo"
|
|
playbook: "project/destroy_resource_group.yml"
|
|
credentials:
|
|
- "Azure Infrastructure"
|
|
extra_vars:
|
|
resource_group_name: "ansible_test"
|
|
region: "eastus"
|