Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also look at NFS mounted datastores, not just VMFS (ansible-collectio…
…ns#1751) Also look at NFS mounted datastores, not just VMFS SUMMARY VMware allows datastores to be NFS hosted. Currently the autoselect_datastore logic only considers VMFS filesystems. NFS mounted filesystems show up as "NFS", so adjusting logic to also check and consider those filesystems. ISSUE TYPE Feature Pull Request COMPONENT NAME Make autoselect_datastore consider NFS mounted filesystems. ADDITIONAL INFORMATION Code change does an "or" test on the volume type looking for things that are "NFS" volume types. Validation requires setting up NFS datastores in your ESXi environment, then calling vmware_guest as below: community.vmware.vmware_guest: hostname: "{{ vmware_vcenter }}" username: "{{ vmware_account_name }}" password: "{{ vmware_password }}" validate_certs: False name: "{{ vmware_create_vm_name }}" datacenter: "{{ vmware_datacenter }}" cluster: "{{ vmware_cluster }}" folder: "{{ vmware_folder }}" hardware: num_cpus: "{{ vmware_create_vm_num_cpus }}" memory_mb: "{{ vmware_create_vm_memory_mb }}" disk: - size_gb: "{{ vmware_create_vm_disk_size_gb }}" type: "thick" datastore: "{{ vmware_create_vm_disk_datastore }}" autoselect_datastore: "{{ vmware_create_vm_disk_autoselect_datastore }}" networks: - connected: yes start_connected: yes name: "{{ vmware_create_vm_networks_name }}" cdrom: - type: "iso" controller_number: 0 unit_number: 0 iso_path: "{{ vmware_create_vm_cdrom_iso_path }}" delegate_to: 127.0.0.1 Reviewed-by: Mario Lenz <[email protected]>
- Loading branch information