I am newbie to Ansible. In my organization, couple of production vm’s need frequent snapshots.I went through Ansible documentation that directed me how to find VM’s folder path and how to take VM snaphost in different playbooks, which worked well. But, I couldn’t do it for multiple vm’s to find folder, store them in variables and take snapshot.
Can anyone please help me here. Appreciate your help.
I’m in the same boat. However I did try just adding another task with a different VM host and it seem to work for me. Except I use the UUID instead of the VM folders. I was able to snapshot 3 of them at the same time. Obviously it only worked with Linux but it should be the same concept. If you find a different approach i would love to hear how you did it.