I have the next playbooks:
- ovirt_snapshots:
auth: “{{ ovirt_auth }}”
state: restore
vm_name: dlitest02
snapshot_id: “{{ snapshot.id }}”
but when i run the playbook the error is:
TASK [ovirt_snapshots] ****************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“failed”: true, “msg”: “the field ‘args’ has an invalid value, which appears to include a variable that is undefined. The error was: ‘snapshot’ is undefined\n\nThe error appears to have been in ‘/etc/ansible/ovirt/ovirt-restore-snapshot.yml’: line 14, column 11, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - ovirt_snapshots:\n ^ here\n”}
Does the virtual machine have to be turned off?
Thanks