How to clone a VM from snapshot with Ansible

Posted on

I need to automate the following task:

  1. Create a VM snapshot
  2. Clone a VM from the snapshot
  3. On new new VM, bring NIC down
  4. Start the new VM

Step 2 seems to be doable manually only. Is there a way to automate it?

The reason for this task is verifying virtual machines, there is a long story behind it.

Thank you,
Ilya.