Hi Joerg,
Yes if you have a list of servers in a host file then it will walk
through each server and create a snap shot for you. I am using this for
patching on my ESX host servers I find a folder to be a pain but have no
other choice.
Let me know if you have any other issues
richg
On Wed, May 31, 2017 at 09:03 AM, Jörg Kastning wrote:
Hi,
In your playbook you have specified:
name: "{{ ansible_hostname }}"
uuid: "{{ ansible_product_uuid | lower }}"
Did that mean, that you take a snapshot from all of your VMs in the
specified folder?
Regards,
Joerg
Am Donnerstag, 18. Mai 2017 21:50:48 UTC+2 schrieb
ameri...@optonline.net:
Hi all here is the solution to this issue I really hope this helps the
next poor person who has to bang there head for weeks trying to figure
this one out.
---
- hosts: all
tasks:
- name: Create Snapshot
vmware_guest_snapshot:
datacenter: Development
hostname: virtual server name
folder: /DVT-UX
username: John doe
password: xxxxxx
name: "{{ ansible_hostname }}"
uuid: "{{ ansible_product_uuid | lower }}"
state: present
snapshot_name: test1
description: patch_snapshot
validate_certs: false
delegate_to: localhost
This does work I have confirmed it.
I really do want to thank Kai for all his help on this I really owe you
one sir..
I will update this later with the final playbook we are trying to patch
our servers using ansible. if physical patch if virtual take snapshot
then patch, reboot if needed.
Thanks..
On Thursday, May 18, 2017 at 11:12:28 AM UTC-4, Kai Stian Olstad
wrote:On 18. mai 2017 15:11, ameri...@optonline.net wrote:
Hi Kai,
Thank you for taking the time to review and reply. I thought the same
thing
yesterday and ran through every option I could think of. the funny
part
about the module is it states in the documentation that UUID is not
required but if I run it with out the UUID I get a different result.
Have you read this one?
"vmware_guest_snapshot don't find vm if not folder is specified"
https://github.com/ansible/ansible/issues/22644
<https://github.com/ansible/ansible/issues/22644>
--
Kai Stian Olstad
--
You received this message because you are subscribed to a topic in the
Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/ansible-project/1kE0sD8L3NY/unsubscribe
<https://groups.google.com/d/topic/ansible-project/1kE0sD8L3NY/unsubscribe>
.
To unsubscribe from this group and all its topics, send an email to
ansible-project+unsubscr...@googlegroups.com
<mailto:ansible-project+unsubscr...@googlegroups.com> .
To post to this group, send email to ansible-project@googlegroups.com
<mailto:ansible-project@googlegroups.com> .
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/9556f5e3-9f90-4465-9cb5-2d4992597e9b%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/9556f5e3-9f90-4465-9cb5-2d4992597e9b%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout
<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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/5183b033.5b210.15c601dab4f.Webtop.55%40optonline.net.
For more options, visit https://groups.google.com/d/optout.