Create Multiple VMs on Azure

18 views
Skip to first unread message

Meera Nagul

unread,
Nov 21, 2019, 6:29:13 AM11/21/19
to ansible...@googlegroups.com
Hi Team,

I am working on playbook to deploy multiple virtual machines on Azure cloud, and i got succeed  in that task, and am trying to run multiple tasks on newly created virtual machines using the same playbook which i used for creation. can somebody help me with this task please.

Thanks & Regards
-Shaik

Phil Griffiths

unread,
Nov 21, 2019, 11:56:08 AM11/21/19
to Ansible Project
This is for AWS but you can get the concept and apply using azure modules instead: https://github.com/ffirg/ansible/blob/master/vm_orchestration/offpremise/roles/offprem/tasks/amazon.yml
Basically capture register output and then use add_host to create an in memory inventory to apply the rest of the config to.
Reply all
Reply to author
Forward
0 new messages