Re: [ansible-project] Help with ovirt_vms module

2019-05-09 Thread Robert
Thanks I will definitely check it out. On Thu, May 9, 2019 at 1:47 PM Jonathan Lozada De La Matta < jloza...@redhat.com> wrote: > Robert, > > checkout this out for examples > https://github.com/oVirt/ovirt-ansible-vm-infra/blob/master/tasks/main.yml. > I been using it for what you describe but, b

Re: [ansible-project] Help with ovirt_vms module

2019-05-09 Thread Jonathan Lozada De La Matta
Robert, checkout this out for examples https://github.com/oVirt/ovirt-ansible-vm-infra/blob/master/tasks/main.yml. I been using it for what you describe but, basically you have to pass a dictionary of the VM's you want to remove and the automation does everything else, with a loop and what not. O

[ansible-project] Help with ovirt_vms module

2019-05-09 Thread Robert
Hey everyone. I am working on a role that will delete VM's from RHV and remove their entries from satelite and AD. The challenge I have is that I need to pass the current host into the name field without doing a loop. Right now my task called destroyvm.yml looks like this: - task to unregister fr