Created
June 28, 2017 09:01
-
-
Save Mehdi-Bl/b0110d35f9e67e069f37f0b9e8e1fd46 to your computer and use it in GitHub Desktop.
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
--- | |
- 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