I have recently updated to Ansible 2.4.2 I have plays that will remove old snapshots from specific VMs and will create new snapshots for those VMs.
The remove playbook is as follows: --- - hosts: localhost vars_prompt: - name: username prompt: "VCenter username" private: no - name: password prompt: "VCenter password" private: yes tasks: - name: Remove Staging snapshots vmware_guest_snapshot: validate_certs: false datacenter: QAE hostname: vcenter.host username: "{{ username }}" password: "{{ password }}" name: "{{ item }}" state: remove_all folder: /Staging/ delegate_to: localhost with_items: - vm1.domain - vm2.domain - vm3.domain - vm4.domain ... Since the update to 2.4.x these playbooks have stopped working. Looking at the Ansible module documentation I see the following change for vmware_guest_snaphsot <http://docs.ansible.com/ansible/latest/vmware_guest_snapshot_module.html>: folder no /vm Destination folder, absolute or relative path to find an existing guest. This is required if name is supplied. The folder should include the datacenter. ESX's datacenter is ha-datacenter Examples: folder: /ha-datacenter/vm folder: ha-datacenter/vm folder: /datacenter1/vm folder: datacenter1/vm folder: /datacenter1/vm/folder1 folder: datacenter1/vm/folder1 folder: /folder1/datacenter1/vm folder: folder1/datacenter1/vm folder: /folder1/datacenter1/vm/folder2 folder: vm/folder2 folder: folder2 Our datacenter is "QAE" and one of the folders I want to interact with is "Staging". I have tried updating the "folder: /Staging/" to folder: /QAE/Staging/, QAE/Staging/, QAE/Staging, /QAE/Staging and each time this fails with the error: "failed: [localhost -> localhost] (item=vm1.domain) => {"changed": false, "item": "vm1.domain", "msg": "Unable to manage snapshots for non-existing VM vm1.domain"} This exact playbook worked in 2.3.x as shown above. Is anyone else using this module and has overcome this issue? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2f465a8f-b2ab-4904-a8fe-c2936c740c23%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.