Maybe I’m missing something, but why does this play to reconfigure an existing VM (set the CPU count):
- name: Add CPU/RAM
vmware_guest:
datacenter: “{{ datacenter }}”
hostname: “{{ vcenter }}”
username: “{{ vmware_user }}”
password: “{{ vmware_password }}”
validate_certs: false
name: “{{ vmname }}”
hardware:
num_cpus: 4
state: present
register: facts
delegate_to: localhost
when: vcenter != “”
- debug:
msg: ‘{{ facts }}’
Give this error:
TASK [Add CPU/RAM] *****************************************************************************************************
fatal: [localhost → localhost]: FAILED! => {“changed”: false, “failed”: true, “msg”: “Failed to find a matching datastore”}
I’m not even doing anything to the disks!!! Why does it complain about a datastore???