Introduction

community.vmware is the Ansible collection that provides modules, inventory plugins and module utilities for automating VMware vSphere and vCenter environments (managing VMs, clusters, hosts, datastores, content libraries, and more). Version 7.0.0 is a major release that follows 6.4.0 and, unlike a typical minor bump, it removes a large number of previously deprecated modules, methods and options. Anyone upgrading from the 6.x series needs to review the porting guide before running existing playbooks against this version.

Whats New

Breaking Changes

The headline change in 7.0.0 is a raised minimum requirement:

  • Support for ansible-core < 2.21.0 has been removed. Environments still running ansible-core 2.20 or older must upgrade ansible-core before installing this collection version.

Removed Features (previously deprecated)

All of the following were deprecated in earlier 6.x releases and are now gone. Playbooks and custom code still referencing them will break.

Removed module_utils methods and functions

Module utilRemoved itemReference
module_utils.vm_device_helperPyVmomiDeviceHelper.is_nvdimm_controllerPR #2314
module_utils.vm_device_helperPyVmomiDeviceHelper.is_nvdimm_devicePR #2314
module_utils.vmwarePyVmomi.find_vmdk_filePR #2314
module_utils.vmwarePyVmomi.host_version_at_leastIssue #2309
module_utils.vmwarePyVmomi.network_exists_by_namePR #2314
module_utils.vmwarePyVmomi.vmdk_disk_path_splitPR #2314
module_utils.vmwareconnect_to_api functionIssue #2465
module_utils.vmwarefind_host_portgroup_by_name function / PyVmomi.find_host_portgroup_by_name methodPR #2314
module_utils.vmware_rest_clientVmwareRestClient.get_folder_by_namePR #2314
plugin_utils.inventorydeprecated plugin utilIssue #2292
plugins.httpapideprecated httpapi pluginIssue #2310

Removed modules and inventory plugins (with replacements)

RemovedReplacementReference
vcenter_foldervmware.vmware.folderIssue #2358
vmware_cluster_havmware.vmware.cluster_haIssue #2333
vmware_cluster_infovmware.vmware.cluster_infoIssue #2261
vmware_content_deploy_ovf_templatevmware.vmware.deploy_content_library_ovfIssue #2334
vmware_content_deploy_templatevmware.vmware.deploy_content_library_templateIssue #2334
vmware_content_library_managervmware.vmware.local_content_library and vmware.vmware.subscribed_content_libraryIssue #2359
vmware_guest_powerstatevmware.vmware.vm_powerstateIssue #2440
vmware_hostvmware.vmware.esxi_host and vmware.vmware.esxi_connectionIssue #2341
vmware_host_inventoryvmware.vmware.esxi_hosts(community.vmware issue tracker)

Also note: vmware_dvs_portgroup has lost the deprecated mac_learning option. Use network_policy.mac_learning instead (Issue #2466).

Upgrade Checklist

Before pinning community.vmware>=7.0.0 in a requirements.yml or CI pipeline:

  • Confirm ansible-core is at 2.21.0 or newer.
  • Grep playbooks/roles for any of the module names in the tables above and swap them for the vmware.vmware equivalents.
  • If custom modules or module_utils import the removed methods/functions directly, update those imports.
  • Re-run the test suite / molecule scenarios against the new version before promoting it in production.

Installation and Verification

# Install the latest community.vmware collection
ansible-galaxy collection install community.vmware

# Or force-install a specific version
ansible-galaxy collection install community.vmware:==7.0.0

# Verify the installed version
ansible-galaxy collection list community.vmware

# Check ansible-core version compatibility
ansible --version

If using a requirements.yml:

collections:
  - name: community.vmware
    version: ">=7.0.0"
ansible-galaxy collection install -r requirements.yml