This file contains hidden or 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
Host * | |
ForwardAgent no | |
ForwardX11 no | |
ForwardX11Trusted yes | |
User root | |
Port 22 | |
Protocol 2 | |
StrictHostKeyChecking no | |
UserKnownHostsFile /dev/null | |
ServerAliveInterval 60 |
This file contains hidden or 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: Create Azure VM | |
hosts: localhost | |
connection: local | |
tasks: | |
- name: Create virtual network | |
azure_rm_virtualnetwork: | |
resource_group: myResourceGroup | |
name: myVnet | |
address_prefixes: "10.0.0.0/16" | |
- name: Add subnet |
This file contains hidden or 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
# Input Parameters for | |
# - VmName: name of the vm to perform action to | |
# - ResourceGroupName: resource group where the vm belongs to | |
# - VmAction:action to perform (startup or shutdown) | |
Param( | |
[string]$VmName, | |
[string]$ResourceGroupName, | |
[ValidateSet("Startup", "Shutdown")] | |
[string]$VmAction |
NewerOlder