Skip to content

Instantly share code, notes, and snippets.

@MBlagui
Created June 28, 2017 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MBlagui/b0110d35f9e67e069f37f0b9e8e1fd46 to your computer and use it in GitHub Desktop.
Save MBlagui/b0110d35f9e67e069f37f0b9e8e1fd46 to your computer and use it in GitHub Desktop.
---
- hosts: localhost
connection: local
tasks:
- name: create ressource group
azure_rm_resourcegroup:
name: testing
location: westus
- name: Create storage account
azure_rm_storageaccount:
resource_group: Testing
name: storagemine001
account_type: Standard_LRS
- name: Create virtual network
azure_rm_virtualnetwork:
resource_group: Testing
name: testvn001
address_prefixes: "10.10.0.0/16"
- name: Add subnet
azure_rm_subnet:
resource_group: Testing
name: subnet001
address_prefix: "10.10.0.0/24"
virtual_network: testvn001
- name: Create public ip
azure_rm_publicipaddress:
resource_group: Testing
allocation_method: Static
name: publicip001
- name: Create security group that allows SSH
azure_rm_securitygroup:
resource_group: Testing
name: secgroup001
rules:
- name: SSH
protocol: Tcp
destination_port_range: 22
access: Allow
priority: 101
direction: Inbound
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment