Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement