Ansible Collection: vmware.vmware_rest

June 17, 2026 ยท View on GitHub

This repo hosts the vmware.vmware_rest Ansible Collection.

The vmware.vmware_rest collection is part of the Red Hat Ansible Certified Content for VMware offering that brings Ansible automation to VMware. This collection brings forward the possibility to manage vSphere resources and automate operator tasks.

This collection is generated using the VMware vSphere REST OpenAPI specifications. It does not rely on the VMware SDKs Pyvmomi and vSphere Automation SDK for Python, nor any python packages that do not come with ansible-core.

System programmers can enable pipelines to setup, tear down and deploy VMs while system administrators can automate time consuming repetitive tasks inevitably freeing up their time. New VMware users can find comfort in Ansible's familiarity and expedite their proficiency in record time.

Known limitations

These modules are based on the vSphere REST API. This API provides partial functionality to the vSphere environment. Feature requests for functionality that is not directly tied to an API endpoint should be created in the vmware.vmware collection.

Breaking changes in version 5.0.0

This collection has had many breaking changes in version 5.0.0. These changes were done to aid in collection maintenance and increase the ability to support more vSphere environments. Previous versions of the collection may still be useful if you do not require vSphere 9+ support.

Requirements

There are no additional requirements for this collection, apart from those that already come with supported python installations.

Compatibility

vSphere

In previous versions of this collection, the major version of the collection was built to support a specific major version of vSphere. Starting with version 5.0.0, the collection will be generated against a specific version of vSphere, but attempt to document support for other versions as well.

Module notes will dictate what versions of vSphere was used to generate the module, and what versions of vSphere should be compatible. If there is a known incompatibility or deprecation, that will also be listed in the module notes.

If a module says it is compatible with a version other than the one it was generated from, that means that the API spec indicates there should be no conflict. It is still possible that you may encounter issues, or notice a difference in return values. If this is the case, please feel free to open a Github issue as described in the support section below.

Ansible version

This collection has been tested against following Ansible versions: >=2.16.0.

Installation

Before using this collection, you need to install it with the Ansible Galaxy command-line tool:

ansible-galaxy collection install vmware.vmware_rest

You can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml, using the format:

collections:
  - name: vmware.vmware_rest

Note that if you install the collection from Ansible Galaxy, it will not be upgraded automatically when you upgrade the Ansible package. To upgrade the collection to the latest available version, run the following command:

ansible-galaxy collection install vmware.vmware_rest --upgrade

You can also install a specific version of the collection, for example, if you need to install a different version. Use the following syntax to install version 5.0.0:

ansible-galaxy collection install vmware.vmware_rest:5.0.0

Use Cases

  • Use Case Name: Modify vCenter Appliance Configuration

    • Actors:
      • System Admin
    • Description:
      • A systems administrator can modify the configuration of a running vCenter appliance.
    • Modules:
      • vmware.vmware_rest.appliance_networking_interfaces_ipv4 - Sets the IPv4 network configuration for specific network interface
      • vmware.vmware_rest.appliance_networking_interfaces_ipv6 - Sets the IPv6 network configuration for specific interface
      • vmware.vmware_rest.appliance_vmon_service - Lists the details of services managed by vMon
  • Use Case Name: Manage a Content Library

    • Actors:
      • System Admin
    • Description:
      • The system administrator can create or manage a content library.
    • Modules:
      • vmware.vmware_rest.content_configuration - Updates the library configuration
  • Use Case Name: Manage a VMs Settings

    • Actors:
      • System Admin
    • Description:
      • The system administrator can manage a VMs settings.
    • Modules:
      • vmware.vmware_rest.vcenter_vm_guest_filesystem_directories - Creates a directory in the guest operating system
      • vmware.vmware_rest.vcenter_vm_hardware_boot_device - Sets the virtual devices that will be used to boot the virtual machine
      • vmware.vmware_rest.vcenter_vm_hardware_boot - Updates the boot-related settings of a virtual machine
      • vmware.vmware_rest.vcenter_vm_hardware_parallel - Adds a virtual parallel port to the virtual machine
      • vmware.vmware_rest.vcenter_vm_hardware - Updates the virtual hardware settings of a virtual machine
      • vmware.vmware_rest.vcenter_vm_hardware_serial - Adds a virtual serial port to the virtual machine
      • vmware.vmware_rest.vcenter_vm_storage_policy - Updates the storage policy configuration of a virtual machine and/or its associated virtual hard disks
      • vmware.vmware_rest.vcenter_vm_tools_installer - Connects the VMware Tools CD installer as a CD-ROM for the guest operating system
      • vmware.vmware_rest.vcenter_vm_tools - Updates the properties of VMware Tools

Testing

All releases will meet the following test criteria.

Contributing

This community is currently accepting contributions. We encourage you to open git issues for bugs, comments or feature requests. Please feel free to submit a PR to resolve the issue. Modules are generated so changes to them most likely will not be applied directly.

Refer to the Ansible community guide.

Development

This collection can be generated using AI and leveraging the skills/subagents in .agents/. Please refer to the vmware module generation.

Communication

For more information about communication, see the Ansible communication guide.

Support

As Red Hat Ansible Certified Content, this collection is entitled to support through the Ansible Automation Platform (AAP) using the Create issue button on the top right corner.

If a support case cannot be opened with Red Hat and the collection has been obtained either from Galaxy or GitHub, there may community help available via:

Release Notes and Roadmap

A list of available releases can be found on the github release page. A changelog may be found attached to the release, or in the CHANGELOG.rst

Note, some collections release before an ansible-core version reaches End of Life (EOL), thus the version of ansible-core that is supported must be a version that is currently supported. For AAP users, to see the supported ansible-core versions, review the AAP Life Cycle. For Galaxy and GitHub users, to see the supported ansible-core versions, review the ansible-core support matrix.

The vmware.vmware collection offers additional functionality. It is also a certified collection. The community.vmware collection offers additional community supported functionality.

License Information

GNU General Public License v3.0 or later See LICENSE to see the full text.