Re: [ansible-project] [ansible project] VM snapshot capture using VMware

2024-01-23 Thread Prady A
Thank you so much Walter that will definitely help.. On Mon, 22 Jan 2024 at 23:29, 'Rowe, Walter P. (Fed)' via Ansible Project < ansible-project@googlegroups.com> wrote: > Adding to my earlier message .. we use these playbooks in a patching > workflow. Snapshot, Patch, if patching fails, revert s

Re: [ansible-project] [ansible project] VM snapshot capture using VMware

2024-01-22 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
Adding to my earlier message .. we use these playbooks in a patching workflow. Snapshot, Patch, if patching fails, revert snapshot. Walter -- Walter Rowe, Division Chief Infrastructure Services Division Mobile: 202.355.4123 On Jan 22, 2024, at 7:22 AM, 'Rowe, Walter P. (Fed)' via Ansible Project

Re: [ansible-project] [ansible project] VM snapshot capture using VMware

2024-01-22 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
We have these playbooks we use to create a snapshot and to revert a snapshot. The go into an ansible automation platform workflow. The esx-vars.yml has a dictionary you will need to modify for your environment. The dictionary key is a vcenter ID you create. We pass in an extravar for datacenter

Re: [ansible-project] [ansible project] VM snapshot capture using VMware

2024-01-22 Thread Prady A
Hi Rilindo, Thanks for your reply. That was typo error . I fixed the issue, in the REST api i need to pass memory flag which by default is false. This memory flag retains the machine power status also. Thank you for your all support. PD On Mon, 22 Jan 2024 at 13:50, Rilindo Foster wrote: > Is

Re: [ansible-project] [ansible project] VM snapshot capture using VMware

2024-01-21 Thread Dick Visser
Just as “Snapshot_name”: “upgrade-{{vm_hostname}} “ has a trailing space.. On Mon, 22 Jan 2024 at 05:50, Rilindo Foster wrote: > Is that a space before snapshot (right where it says “Task” in the JSON > request)? Was that part of the request or did you insert that by mistake > when you copied it

Re: [ansible-project] [ansible project] VM snapshot capture using VMware

2024-01-21 Thread Rilindo Foster
Is that a space before snapshot (right where it says “Task” in the JSON request)? Was that part of the request or did you insert that by mistake when you copied it into the email?- RilindoOn Jan 21, 2024, at 9:13 PM, Prady A wrote:Hi,Thank you both of you for your kind suggestions.We are using le

Re: [ansible-project] [ansible project] VM snapshot capture using VMware

2024-01-21 Thread Prady A
Hi, Thank you both of you for your kind suggestions. We are using leap-upgrade tool to upgrade. In upgrade there is no issue. We have a health checkup also post upgrade. The issue is in VMware but not sure when creating manually the “*Snapshot the virtual machine memory*” is set to Yes but when I

Re: [ansible-project] [ansible project] VM snapshot capture using VMware

2024-01-20 Thread Nico Kadel-Garcia
On Thu, Jan 18, 2024 at 8:16 PM Prady A wrote: > > Hi experts, > > We are doing automation to update RHEL7-> RHEL8 . > Before we upgrade we take the snapshot. > The issue is whenever there is an upgrade failure we revert the server to its > previous state. But it seems when we revert it the machi

Re: [ansible-project] [ansible project] VM snapshot capture using VMware

2024-01-18 Thread Rilindo Foster
Hi! It is not clear how this is an Ansible issue. Can you provide the playbook or role code you use to accomplish this? - Rilindo > On Jan 18, 2024, at 7:16 PM, Prady A wrote: > > Hi experts, > > We are doing automation to update RHEL7-> RHEL8 . > Before we upgrade we take the snapshot. > T

[ansible-project] [ansible project] VM snapshot capture using VMware

2024-01-18 Thread Prady A
Hi experts, We are doing automation to update RHEL7-> RHEL8 . Before we upgrade we take the snapshot. The issue is whenever there is an upgrade failure we revert the server to its previous state. But it seems when we revert it the machine is in power off state.. it seems when we take automatic sna