This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "tls_private_key" "vm1key" { | |
algorithm = "RSA" | |
rsa_bits = "4096" | |
} | |
output "tls_private_key" { | |
value = tls_private_key.vm1key.private_key_pem | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "vmPublicIPDNS" { | |
type = string | |
description = "virtual machine public IP DNS name w/ technician's initials as a suffix" | |
default = "ansibledev-yourinitials" | |
} | |
data "azurerm_subnet" "default" { | |
name = var.vnetSubnetName | |
virtual_network_name = var.vnetName | |
resource_group_name = var.rgName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "nsgName" { | |
type = string | |
description = "network security group name w/ technician's initials as a suffix" | |
default = "ansibledev-yourinitials" | |
} | |
variable "nsgRule1" { | |
type = map | |
description = "network security group rule 1 - remember to modify 'source_address_prefix' with your own local Public IP address https://www.whatismyip.com/" | |
default = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "vnetName" { | |
type = string | |
description = "virtual network name w/ technician's initials as a suffix" | |
default = "ansibledev-yourinitials" | |
} | |
variable "vnetAddressSpace" { | |
type = list | |
description = "virtual network address space" | |
default = ["10.0.0.0/24"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "rgName" { | |
type = string | |
description = "resource group name w/ technician's initials as a suffix" | |
default = "ansibledev-yourinitials" | |
} | |
variable "rgLocation" { | |
type = string | |
description = "resource group location" | |
default = "australiaeast" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Destroy | |
hosts: localhost | |
connection: local | |
gather_facts: false | |
vars: | |
resource_group_name: ansible-dev-win2019-yourinitials | |
tasks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- | |
gather_facts: true | |
hosts: all | |
name: Prepare | |
tasks: | |
- | |
debug: | |
msg: "{{ ansible_facts['distribution'] }}" | |
name: "print OS version" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Destroy | |
hosts: localhost | |
connection: local | |
gather_facts: false | |
vars: | |
resource_group_name: ansible-dev-rhel8-yourinitials | |
tasks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- | |
gather_facts: true | |
hosts: all | |
name: Prepare | |
tasks: | |
- | |
debug: | |
msg: "{{ ansible_facts['distribution'] }}" | |
name: "print OS version" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wheel | |
requests==2.24.0 | |
yamllint==1.25.0 | |
pywinrm==0.4.1 | |
junit-xml==1.9 | |
ansible==2.10.2 | |
ansible-lint==4.3.7 | |
molecule==3.1.5 | |
molecule-azure==0.5.0 |