# Strange vmware\_guest error

**URL:** <https://forum.ansible.com/t/strange-vmware-guest-error/24399>\
**Category:** Ansible Project\
**Created:** [May 4, 2017, 10:05am UTC](https://forum.ansible.com/t/strange-vmware-guest-error/24399 "2017-05-04T10:05:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKPhil](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@MKPhil](https://forum.ansible.com/u/MKPhil)\
**Post date:** [May 4, 2017, 10:05am UTC](https://forum.ansible.com/t/strange-vmware-guest-error/24399/1 "2017-05-04T10:05:34Z")

</div>

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???
