openshift_virtualization

3Modules4Plugins1Dependency

Overview

Description

Lean Ansible bindings for OpenShift Virtualization

Readme

Lean Ansible bindings for OpenShift Virtualization

This repository hosts the redhat.openshift_virtualization Ansible Collection, which provides virtual machine operations and an inventory source for use with Ansible.

Ansible and Python version compatibility

This collection has been tested against Ansible versions >=2.16,<=2.19 and Python versions >=3.10,<=3.13.

See the Ansible core support matrix for supported combinations.

Included content

Plugins

  • kubevirt: Inventory source for KubeVirt VirtualMachines
  • kubevirt_vm: Create or delete KubeVirt VirtualMachines
  • kubevirt_vm_info: Describe KubeVirt VirtualMachines
  • kubevirt_vmi_info: Describe KubeVirt VirtualMachineInstances

Using this collection

Installing the Collection from Ansible Galaxy

Before using the collection, you need to setup Ansible Automation Hub as galaxy server; then install it with the Ansible Galaxy command-line tool:

ansible-galaxy collection install redhat.openshift_virtualization

Build and install locally

Clone the repository, checkout the tag you want to build, or pick the main branch for the development version; then:

ansible-galaxy collection build .
ansible-galaxy collection install kubevirt-core-*.tar.gz

Dependencies

Ansible collections

To install all the dependencies, you need to setup Ansible Automation Hub as galaxy server; then install them with:

ansible-galaxy collection install -r requirements.yml

Python libraries

  • jsonpatch
  • kubernetes>=28.1.0
  • PyYAML>=3.11

To install all the dependencies:

pip install -r requirements.txt

See Ansible Using collections for more details.

Providing feedback and reporting issues

If you encounter any issues with this collection please go to the Red Hat Customer Portal and open a support case.

Additionally, to report an issue or to improve this collection, you can also log in to your Red Hat Jira account and submit a Jira issue.

Testing

The collection includes unit and integration tests. The integration tests require a working cluster.

Running tests

To run tests the ansible-test tool is required. See Testing Ansible and Collections on how to run the collection's tests.

Licensing

Apache License 2.0

See LICENSE to see the full text.

Certification

Product
Red Hat Ansible Automation Platform 2.4
Red Hat Ansible Automation Platform 2.5
Documentation

Lean Ansible bindings for OpenShift Virtualization

This repository hosts the redhat.openshift_virtualization Ansible Collection, which provides virtual machine operations and an inventory source for use with Ansible.

Ansible and Python version compatibility

This collection has been tested against Ansible versions >=2.16,<=2.19 and Python versions >=3.10,<=3.13.

See the Ansible core support matrix for supported combinations.

Included content

Plugins

  • kubevirt: Inventory source for KubeVirt VirtualMachines
  • kubevirt_vm: Create or delete KubeVirt VirtualMachines
  • kubevirt_vm_info: Describe KubeVirt VirtualMachines
  • kubevirt_vmi_info: Describe KubeVirt VirtualMachineInstances

Using this collection

Installing the Collection from Ansible Galaxy

Before using the collection, you need to setup Ansible Automation Hub as galaxy server; then install it with the Ansible Galaxy command-line tool:

ansible-galaxy collection install redhat.openshift_virtualization

Build and install locally

Clone the repository, checkout the tag you want to build, or pick the main branch for the development version; then:

ansible-galaxy collection build .
ansible-galaxy collection install kubevirt-core-*.tar.gz

Dependencies

Ansible collections

To install all the dependencies, you need to setup Ansible Automation Hub as galaxy server; then install them with:

ansible-galaxy collection install -r requirements.yml

Python libraries

  • jsonpatch
  • kubernetes>=28.1.0
  • PyYAML>=3.11

To install all the dependencies:

pip install -r requirements.txt

See Ansible Using collections for more details.

Providing feedback and reporting issues

If you encounter any issues with this collection please go to the Red Hat Customer Portal and open a support case.

Additionally, to report an issue or to improve this collection, you can also log in to your Red Hat Jira account and submit a Jira issue.

Testing

The collection includes unit and integration tests. The integration tests require a working cluster.

Running tests

To run tests the ansible-test tool is required. See Testing Ansible and Collections on how to run the collection's tests.

Licensing

Apache License 2.0

See LICENSE to see the full text.

Dependencies

This collection requires the following collections for use:

NameSummary
No dependencies
This collection is not being used by other collections.
View in Automation Hub
Red Hat logoLinkedInYouTubeFacebookTwitter

Platforms

Products & services

Try, buy, sell

Help

About Red Hat Ecosystem Catalog

The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.

We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2025 Red Hat