On Thu, Feb 27, 2020 at 5:29 PM Strahil Nikolov <hunter86_bg@yahoo.com> wrote:
[snip]
>I could be wrong, but I didn't find any ansible moduleĀ  to do this with
>Ansible playbooks: I can only save all the VM, that in my case wouldn't
>be
>necessary and instead time and storage wasting.

[snip]

Hi Gianluca,

Did you check:
https://github.com/silverorange/ovirt_ansible_backup


Best Regards,
Strahil Nikolov

Yes Strahil, I did check. I also checked his review with improvements made in collaboration with Martin and I also gave my feedback to Jayme on the list.
But as you can notice from my words I left above, it doesn't apply to my scenario.
I want to create a snapshot of the VM but not with all its disks, but only with the boot one.
And this in my opinion is not feasible with Ansible ovirt modules.
Coming back to the subject of this thread, in his original playbook Jayme tests when the export file passes from ova.tmp extension to .ova and uses that in his wait_for module to consider the job as completed.
My alternate proposal was to query the "job" table of the engine database to check when the related job status becomes "FINISHED".
Probably I have to start from the poll_events.py sdk example to check when I get the event that the export as ova has finished.....
Any hint or alternate way through the python SDK will be appreciated.

Gianluca