Hi Neeraj , As of now , there is no ansible native modules available to support this. steps involved to get this done.
1. create one windows host 2. connect to this host using ansible and invoke powerhsell module for deploying resources in hyper-v https://docs.microsoft.com/en-us/powershell/module/hyper-v/new-vm?view=win10-ps On Friday, July 12, 2019 at 5:58:06 PM UTC+2, Neeraj Shah wrote: > > Hello All, > > I am newbie to Ansible. > > Can someone pls point me to resources or post some playbook code that > deploys VM's on a Hyper-V 2012 or 2016 server ? Alternatively, lets say if > i have a golden image of a VM created ( in *.vhd or *.vhdx format), how can > i deploy this image to multiple hosts using Ansible? > I have looked online and see there is stuff for Vmware but couldnt find > much help for Hyper-V > > thanks > > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cf2d0542-82f3-48fe-a34f-3b5e3ddb4458%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
