Thanks Jaya. But how do you run those hyper-v cmdlets using playbooks ? Do i need to use win_shell module ?
On Sunday, July 14, 2019 at 5:48:31 AM UTC-4, Jaya Nehru Kumar wrote: > > 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/a9e9bd14-23fb-4bb0-8f58-fda21ac26dcd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
