Hopefully this is in the right place. For years we have been building systems with ansible vmware_guest module using an HP esx host and 3Par storage. In our code we send the names or the “host” and the name of the datastore . In Vcenter, the “datastore” is browseable for files and we can see any iso files or vmdk files we created. Life is good. Ansible works, etc.
We got a new Dell set up and it uses a different file storage arrangement. I am a bit abstracted from understanding all the differences, but you cannot “browse” the datastore. So when I go to spin up a system using our playbook, I get some errors that indicate I cannot write to the datastore.
For Dell VX Rails VSAN, do I need to use some other parameters in the module or is there another module I should be using?
Code below:
- name: Deploy a VM without a CD-ROM from scratch
vmware_guest:
hostname: “{{ vcenter_hostname }}”
username: “{{ vcenter_username }}”
password: “{{ vcenter_password }}”
datacenter: “{{ vcenter_dc }}”
cluster: “{{ vcenter_cluster }}”
datastore: “{{ guest_datastore }}”
folder: “{{ guest_folder }}”
name: “{{ guest_name }}”
guest_id: “{{ guest_id | default(‘rhel8_64Guest’) }}”
annotation: “{{ guest_note }}”
template: “{{ guest_template_name | default(omit) }}”
hardware:
boot_firmware: efi
secure_boot: true
version: 15
num_cpus: “{{ vm_num_cpus | default(‘4’) }}”
num_cpu_cores_per_socket: “{{ vm_num_cpu_cores_per_socket | default(‘2’) }}”
memory_mb: “{{ vm_memory_mb | default(‘16384’) }}”
networks:
- connected: true
start_connected: true
device_type: vmxnet3
name: “{{ vm_network_name.stdout }}”