# Ansible playbook to automatically create VMware snapshots

**URL:** <https://forum.ansible.com/t/ansible-playbook-to-automatically-create-vmware-snapshots/33638>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [August 18, 2020, 10:40pm UTC](https://forum.ansible.com/t/ansible-playbook-to-automatically-create-vmware-snapshots/33638 "2020-08-18T22:40:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quad\_Zero](https://avatars.discourse-cdn.com/v4/letter/q/eb9ed0/32.png) [@Quad\_Zero](https://forum.ansible.com/u/Quad_Zero)\
**Post date:** [August 18, 2020, 10:40pm UTC](https://forum.ansible.com/t/ansible-playbook-to-automatically-create-vmware-snapshots/33638/1 "2020-08-18T22:40:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Chris1](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@Chris1](https://forum.ansible.com/u/Chris1)\
**Post date:** [August 20, 2020, 4:11am UTC](https://forum.ansible.com/t/ansible-playbook-to-automatically-create-vmware-snapshots/33638/2 "2020-08-20T04:11:33Z")

</div>

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](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
