Repository: ansible/ansible
Pull request: VMware Inventory Fixes
##### SUMMARY
This fixes #63936 and #63937

##### ISSUE TYPE
- Bugfix Pull Request


##### COMPONENT NAME
lib/ansible/plugins/inventory/vmware_vm_inventory.py

##### ADDITIONAL INFORMATION
The verify file method was removed because it is already implemented by the auto plugin and the current one prevented the plugin from being used by auto plugin. 

Tower/AWX inject credentials using specific environment variables (https://github.com/ansible/awx/blob/602ee856fa03c7e0ab5d773cd04af2f2fad17022/awx/main/models/credential/injectors.py#L69). They are corrected here to match the ones injected to make the built in credential useful in Tower/AWX

Problem statement:
VMware inventory not loaded by auto plugin
##### SUMMARY
The vmware_vm_inventory plugin cannot verify the inventory file when being loaded via the auto plugin

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
lib/ansible/plugins/inventory/vmware_vm_inventory.py

##### ANSIBLE VERSION
```paste below
ansible 2.8.1
  config file = None
  configured module search path = ['/Users/wtome/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/2.8.1_1/libexec/lib/python3.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.7.4 (default, Sep  7 2019, 18:27:02) [Clang 10.0.1 (clang-1001.0.46.4)]
```

##### CONFIGURATION
```paste below

```

##### OS / ENVIRONMENT
MacOS 10.14.6


##### STEPS TO REPRODUCE
vmware_vm_inventory.yaml
```yaml
---
plugin: vmware_vm_inventory
strict: True
```

##### EXPECTED RESULTS
Inventory should be parsed from vCenter

##### ACTUAL RESULTS
```paste below
ansible-inventory -i vmware_vm_inventory.yaml --playbook-dir=. --list
 [WARNING]:  * Failed to parse /Users/wtome/ansible-
inventory/tests/vmware_vm_inventory.yaml with auto plugin: inventory config
'/Users/wtome/ansible-
inventory/tests/vmware_vm_inventory.yaml' could not be verified by plugin
'vmware_vm_inventory'
```

Hints from issue discussion:
Files identified in the description:
* [`lib/ansible/modules/cloud/vmware/_vmware_category_facts.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/_vmware_category_facts.py)
* [`lib/ansible/modules/cloud/vmware/_vmware_host_service_facts.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/_vmware_host_service_facts.py)
* [`lib/ansible/modules/cloud/vmware/_vmware_host_vmnic_facts.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/_vmware_host_vmnic_facts.py)
* [`lib/ansible/modules/cloud/vmware/_vmware_target_canonical_facts.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/_vmware_target_canonical_facts.py)
* [`lib/ansible/modules/cloud/vmware/_vmware_vmkernel_facts.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/_vmware_vmkernel_facts.py)
* [`lib/ansible/modules/cloud/vmware/_vmware_vswitch_facts.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/_vmware_vswitch_facts.py)
* [`lib/ansible/modules/cloud/vmware/vmware_about_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_about_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_category.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_category.py)
* [`lib/ansible/modules/cloud/vmware/vmware_category_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_category_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_cluster.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_cluster.py)
* [`lib/ansible/modules/cloud/vmware/vmware_cluster_drs.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_cluster_drs.py)
* [`lib/ansible/modules/cloud/vmware/vmware_cluster_ha.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_cluster_ha.py)
* [`lib/ansible/modules/cloud/vmware/vmware_cluster_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_cluster_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_cluster_vsan.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_cluster_vsan.py)
* [`lib/ansible/modules/cloud/vmware/vmware_content_deploy_template.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_content_deploy_template.py)
* [`lib/ansible/modules/cloud/vmware/vmware_content_library_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_content_library_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_content_library_manager.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_content_library_manager.py)
* [`lib/ansible/modules/cloud/vmware/vmware_datacenter.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_datacenter.py)
* [`lib/ansible/modules/cloud/vmware/vmware_datastore_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_datastore_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_datastore_maintenancemode.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_datastore_maintenancemode.py)
* [`lib/ansible/modules/cloud/vmware/vmware_deploy_ovf.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_deploy_ovf.py)
* [`lib/ansible/modules/cloud/vmware/vmware_dns_config.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_dns_config.py)
* [`lib/ansible/modules/cloud/vmware/vmware_drs_group.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_drs_group.py)
* [`lib/ansible/modules/cloud/vmware/vmware_drs_rule_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_drs_rule_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_dvs_host.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_dvs_host.py)
* [`lib/ansible/modules/cloud/vmware/vmware_dvs_portgroup.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_dvs_portgroup.py)
* [`lib/ansible/modules/cloud/vmware/vmware_dvs_portgroup_find.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_dvs_portgroup_find.py)
* [`lib/ansible/modules/cloud/vmware/vmware_dvs_portgroup_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_dvs_portgroup_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_dvswitch.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_dvswitch.py)
* [`lib/ansible/modules/cloud/vmware/vmware_dvswitch_nioc.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_dvswitch_nioc.py)
* [`lib/ansible/modules/cloud/vmware/vmware_dvswitch_pvlans.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_dvswitch_pvlans.py)
* [`lib/ansible/modules/cloud/vmware/vmware_evc_mode.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_evc_mode.py)
* [`lib/ansible/modules/cloud/vmware/vmware_export_ovf.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_export_ovf.py)
* [`lib/ansible/modules/cloud/vmware/vmware_folder_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_folder_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_boot_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_boot_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_boot_manager.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_boot_manager.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_disk.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_disk.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_disk_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_disk_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_file_operation.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_file_operation.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_find.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_find.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_move.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_move.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_network.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_network.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_powerstate.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_powerstate.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_screenshot.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_screenshot.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_sendkey.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_sendkey.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_video.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_video.py)
* [`lib/ansible/modules/cloud/vmware/vmware_guest_vnc.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_guest_vnc.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_active_directory.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_active_directory.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_config_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_config_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_config_manager.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_config_manager.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_dns_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_dns_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_facts.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_facts.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_feature_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_feature_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_firewall_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_firewall_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_hyperthreading.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_hyperthreading.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_ipv6.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_ipv6.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_kernel_manager.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_kernel_manager.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_ntp.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_ntp.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_ntp_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_ntp_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_package_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_package_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_powermgmt_policy.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_powermgmt_policy.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_powerstate.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_powerstate.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_service_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_service_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_service_manager.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_service_manager.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_snmp.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_snmp.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_ssl_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_ssl_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_vmhba_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_vmhba_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_host_vmnic_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_host_vmnic_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_local_role_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_local_role_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_local_role_manager.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_local_role_manager.py)
* [`lib/ansible/modules/cloud/vmware/vmware_local_user_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_local_user_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_local_user_manager.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_local_user_manager.py)
* [`lib/ansible/modules/cloud/vmware/vmware_maintenancemode.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_maintenancemode.py)
* [`lib/ansible/modules/cloud/vmware/vmware_migrate_vmk.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_migrate_vmk.py)
* [`lib/ansible/modules/cloud/vmware/vmware_portgroup.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_portgroup.py)
* [`lib/ansible/modules/cloud/vmware/vmware_portgroup_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_portgroup_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_resource_pool.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_resource_pool.py)
* [`lib/ansible/modules/cloud/vmware/vmware_tag.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_tag.py)
* [`lib/ansible/modules/cloud/vmware/vmware_tag_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_tag_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_tag_manager.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_tag_manager.py)
* [`lib/ansible/modules/cloud/vmware/vmware_target_canonical_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_target_canonical_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vcenter_settings.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vcenter_settings.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vcenter_statistics.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vcenter_statistics.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vm_host_drs_rule.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vm_host_drs_rule.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vm_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vm_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vm_shell.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vm_shell.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vm_storage_policy_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vm_storage_policy_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vm_vm_drs_rule.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vm_vm_drs_rule.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vm_vss_dvs_migrate.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vm_vss_dvs_migrate.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vmkernel.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vmkernel.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vmkernel_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vmkernel_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vmkernel_ip_config.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vmkernel_ip_config.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vmotion.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vmotion.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vsan_cluster.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vsan_cluster.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vsan_health_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vsan_health_info.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vspan_session.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vspan_session.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vswitch.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vswitch.py)
* [`lib/ansible/modules/cloud/vmware/vmware_vswitch_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vmware_vswitch_info.py)
* [`lib/ansible/modules/cloud/vmware_httpapi/vmware_cis_category_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware_httpapi/vmware_cis_category_info.py)
* [`lib/ansible/modules/cloud/vmware_httpapi/vmware_core_info.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware_httpapi/vmware_core_info.py)

If these files are inaccurate, please update the `component name` section of the description or use the `!component` bot command.

[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)
<!--- boilerplate: components_banner --->
cc @Akasurde @GBrawl @Tomorrow9 @alongchamps @bedecarroll @castawayegr @chrrrles @dav1x @davidmhewitt @dx0xm @equelin @garbled1 @goneri @gyorgypeter @imjoseangel @jjahns @kamsz @karstenjakobsen @lparkes @n3pjk @nafpliot-ibm @nerzhul @oboukili @pdellaert @pgbidkar @ritzk @rmin @stravassac @sumkincpp @vmwjoseph @warthog9 @woshihaoren
[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)
<!--- boilerplate: notify --->
@willtome, just so you are aware we have a dedicated Working Group for vmware.
You can find other people interested in this in `#ansible-vmware` on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)
<!--- boilerplate: community_workgroups --->
Files identified in the description:
* [`lib/ansible/plugins/inventory/vmware_vm_inventory.py`](https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/inventory/vmware_vm_inventory.py)

If these files are inaccurate, please update the `component name` section of the description or use the `!component` bot command.

[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)
<!--- boilerplate: components_banner --->

Commit message: fix #63936 #63937

Patch to review:
diff --git a/lib/ansible/plugins/inventory/vmware_vm_inventory.py b/lib/ansible/plugins/inventory/vmware_vm_inventory.py
index 0ba36d83331a7e..f76a8de797f827 100644
--- a/lib/ansible/plugins/inventory/vmware_vm_inventory.py
+++ b/lib/ansible/plugins/inventory/vmware_vm_inventory.py
@@ -32,11 +32,13 @@
             required: True
             env:
               - name: VMWARE_SERVER
+              - name: VMWARE_HOST
         username:
             description: Name of vSphere admin user.
             required: True
             env:
               - name: VMWARE_USERNAME
+              - name: VMWARE_USER
         password:
             description: Password of vSphere admin user.
             required: True
@@ -52,6 +54,8 @@
             - Allows connection when SSL certificates are not valid. Set to C(false) when certificates are not trusted.
             default: True
             type: boolean
+            env:
+              - name: VMWARE_VALIDATE_CERTS
         with_tags:
             description:
             - Include tags and associated virtual machines.
@@ -307,13 +311,11 @@ def verify_file(self, path):
         Verify plugin configuration file and mark this plugin active
         Args:
             path: Path of configuration YAML file
-
         Returns: True if everything is correct, else False
-
         """
         valid = False
         if super(InventoryModule, self).verify_file(path):
-            if path.endswith(('vmware.yaml', 'vmware.yml')):
+            if path.endswith(('vmware.yaml', 'vmware.yml', 'vmware_vm_inventory.yaml', 'vmware_vm_inventory.yml')):
                 valid = True
 
         return valid


Code review comments:
diff_hunk: @@ -31,12 +31,12 @@
             description: Name of vCenter or ESXi server.
             required: True
             env:
-              - name: VMWARE_SERVER
+              - name: VMWARE_HOST
         username:
             description: Name of vSphere admin user.
             required: True
             env:
-              - name: VMWARE_USERNAME
+              - name: VMWARE_USER
path: lib/ansible/plugins/inventory/vmware_vm_inventory.py
text: @author:
Added VMWARE_USER as environment variable to match value used by tower and vmware_* modules

diff_hunk: @@ -32,11 +32,13 @@
             required: True
             env:
               - name: VMWARE_SERVER
+              - name: VMWARE_HOST
path: lib/ansible/plugins/inventory/vmware_vm_inventory.py
text: @user1:
Minor nit - if someone had both `VMWARE_SERVER`, and `VMWARE_HOST` set, VMWARE_SERVER was used. Now `VMWARE_HOST` has a higher precedence (last one wins). You could reorder to ensure compatibility:
```
            env:
              - name: VMWARE_HOST
              - name: VMWARE_SERVER
```
Probably unlikely to affect anyone, but perhaps worth mentioning.