Hello,
I am testing the vmware_guest module to snapshot a VM but it returns an error message with any invocation of module. According to the documentation (https://docs.ansible.com/ansible/vmware_guest_module.html), i’m using ansible development version (ansible 2.3.0 (devel 86db15b105)) and the required parameters of module for vcenter connection.
The error message is “msg”: “Failed to find a matching datastore”
Removing the snapshot part and testing with ansible 2.2, the error is diferent: KeyError: ‘template’
The task involved:
- vmware_guest:
validate_certs: False
hostname: “{{ vcenter.ip }}”
username: “{{ vcenter.username }}”
password: “{{ vcenter.password }}”
datacenter: “{{ vcenter.datacenter }}”
name: “{{ vm2snap | upper }}”
state: poweredoff
#snapshot_op: