This collection provides a range of modules for managing Hyper-V hosts and VM's etc that run on those hosts.
Note: This is a work in progress and it is actually being developed. Any problems, issues, bugs that are identified are gradually solved during the development and testing.
The collection and playbooks are developed and tested with versions of Ansible core (higher than 2.12
).
The library of scripts is based on the support for powershell by ansible core powershell by ansible core
The collection and related playbooks can be installed by cloning this repo.
On target machine run: https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 On ansible controller machine run: pip install pywinrm
The collection has been tested with the Hyper-V role based VMs on:
Windows Server:
- 2016
- 2019
- 2022
Name | Description |
---|---|
Create VM | Create a Hyper-V VM |