Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. ---
  2.  
  3. - hosts: localhost
  4. connection: local
  5. tasks:
  6. - name: create ressource group
  7. azure_rm_resourcegroup:
  8. name: testing
  9. location: westus
  10.  
  11. - name: Create storage account
  12. azure_rm_storageaccount:
  13. resource_group: Testing
  14. name: storagemine001
  15. account_type: Standard_LRS
  16.  
  17. - name: Create virtual network
  18. azure_rm_virtualnetwork:
  19. resource_group: Testing
  20. name: testvn001
  21. address_prefixes: "10.10.0.0/16"
  22.  
  23. - name: Add subnet
  24. azure_rm_subnet:
  25. resource_group: Testing
  26. name: subnet001
  27. address_prefix: "10.10.0.0/24"
  28. virtual_network: testvn001
  29.  
  30. - name: Create public ip
  31. azure_rm_publicipaddress:
  32. resource_group: Testing
  33. allocation_method: Static
  34. name: publicip001
  35.  
  36. - name: Create security group that allows SSH
  37. azure_rm_securitygroup:
  38. resource_group: Testing
  39. name: secgroup001
  40. rules:
  41. - name: SSH
  42. protocol: Tcp
  43. destination_port_range: 22
  44. access: Allow
  45. priority: 101
  46. direction: Inbound
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement