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
- name: Get Latest Release Number for App hosts: localhost
tasks: - name: Get Release Number uri: method: GET return_content: yes body_format: json register: latest_release
- debug: var: latest_release.json.tag_name
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6C256995-7C99-4FBD-A7B3-1D843397F49D%40contoso.com.
For more options, visit https://groups.google.com/d/optout.
All of our vCenters are unlinked, and completely independent making it a little more difficult.
It’s possible we could have some more luck using a dynamic inventory from vCenter. We are looking at Tower, so it could be a possibility.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/C7059C6A-5E87-45CB-8853-F3F66479D1A5%40ussignal.com.
For more options, visit https://groups.google.com/d/optout.
Jonathan lozada de la matta
AUTOMATION CONSULTANT - AUTOMATION PRACTICE