Ansible playbook to automatically create VMware snapshots

G’day,

Could someone please point me in the direction of automated creation of vmware snapshots?

Scenario:

  1. Plan to update a series virtual machine hosts through yum update
  2. Create snapshots for each vm
  3. Confirmation that snapshots are successfully completed
  4. Run Yum updates.

Thank you so much in advance.

I suggest learning to remove snapshots as well. I’ve run into a lot of issues with admins that create snapshots, and forget to remove them.

You can find some good examples on the doc page:
https://docs.ansible.com/ansible/2.4/vmware_guest_snapshot_module.html

I hope that helps - if you need more specific assistance, let us know.

Chris