Not sure how you're Vcenters are setup, but in my environment our Vm's are
not really assigned to specific Vcenter's so I use the UUID's to perform
snapshots for each VM in one playbook.  I haven't figured out how to call
the UUID so I have it set manually.

Israel



On Wed, Aug 22, 2018 at 11:03 AM Carter, Stephen <[email protected]>
wrote:

> Hello,
>
>
>
> I was curious if anyone has come up with a decent way of accomplishing
> this.
>
>
>
> I have an inventory file with a bunch of VM’s I manage currently.
>
>
>
> When we do maintenances we like to take a snapshot just before we perform
> actions however, I am hitting a hitch of trying to find a way to determine
> what vCenter the VM is located on. There can be several it could be on, and
> I really don’t want to statically go and define it for all my VM’s.
>
>
>
> Any ideas on the best way to accomplish this? I was thinking I could try
> vmware_guest_find and iterating through the vCenters but that seems
> inelegant and sort of slow.
>
>
>
> Thanks
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/6C256995-7C99-4FBD-A7B3-1D843397F49D%40contoso.com
> <https://groups.google.com/d/msgid/ansible-project/6C256995-7C99-4FBD-A7B3-1D843397F49D%40contoso.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2B%3D2DCgvypeEXQGpROkpubuHTj6SZ0%3Dn%2BjorBF4wmgj7Zah%3DGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to