Ansible Playbook for Creating a VM with OS and multiple data managed disks

0 votes

I'm trying to Create a VM with OS and multiple data managed disks on Azure. Can I please know how to write the playbook for it? Thank you

Mar 27, 2019 in Ansible by Ammie

1 answer to this question.

0 votes

Hey @Ammie, Try a playbook something like this:

- name: Create a VM with OS and multiple data managed disks
    resource_group: Testing
    name: testvm001
    vm_size: Standard_D4
    managed_disk_type: Standard_LRS
    admin_username: adminUser
      - path: /home/adminUser/.ssh/authorized_keys
        key_data: < insert yor ssh public key here... >
      offer: CoreOS
      publisher: CoreOS
      sku: Stable
      version: latest
        - lun: 0
          disk_size_gb: 64
          managed_disk_type: Standard_LRS
        - lun: 1
          disk_size_gb: 128
          managed_disk_type: Premium_LRS
answered Mar 27, 2019 by Stark

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

Playbook to create VM with managed disk - ansible with azure

Hey @Kavya, try something like this: - name: ...READ MORE

answered Mar 26, 2019 in Ansible by Jobin
0 votes
1 answer
0 votes
1 answer

Configuration for setting up windows VM using ansible and vagrant

Hey @Leena,  your configuration file group_vars/windows-dev should contain something like: ansible_user: ...READ MORE

answered Feb 4, 2019 in Ansible by Vaishu
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
2 answers

Issue creating AWS VPC with Ansible

You can use the details given in ...READ MORE

answered Aug 16, 2018 in Ansible by Priyaj
• 58,120 points
0 votes
1 answer

Ansible playbook for moving files from one node to another remote node

The best way to do this is: copy ...READ MORE

answered Jan 16, 2019 in Ansible by Nigya

edited Jan 18, 2019 by Vardhan 6,287 views