Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.47 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.47 KB

hyperv

Ansible Module - xray700r.hyperv

License

xray700r.hyperv

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.

Ansible Requirements

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

Installation

The collection and related playbooks can be installed by cloning this repo.

Preparation of target HyperV hosts

On target machine run: https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 On ansible controller machine run: pip install pywinrm

Platforms

The collection has been tested with the Hyper-V role based VMs on:

Windows Server:
  - 2016
  - 2019
  - 2022

Sample Playbooks

Name Description
Create VM Create a Hyper-V VM