Unable to recall/display multiple register value in single ansible play book.

Hi Team,

I want to register multiple values and to display the details at the end. I have created a small playbook with two register value as mentioned below, but its display only single value instead of two. Can some body guide me how to achieve this task.

Hi Team,

I want to register multiple values and to display the details at the end. I have created a small playbook with two
register value as mentioned below, but its display only single value instead of two. Can some body guide me how to
achieve this task.

playbook
---
- name: Gather esxi info
hosts: all
tasks:
- name: vmware version
command: esxcli system version get
register: ESXi_Version
- name: Virtual Machines
command: vim-cmd vmsvc/getallvms
register: Provisioned_VirtualMachines
- debug:
var={{Provisioned_VirtualMachines.stdout_lines,ESXi_Version.stdout_lines}}

debug: var: This is used for variable names.

Please try

debug:
  msg: "{{Provisioned_VirtualMachines.stdout_lines }},{{ ESXi_Version.stdout_lines}}"

Regards
       Racke

============================================

output

TASK [Virtual Machines]
************************************************************************************************************************************************************************************
changed: [xxxxxxxxx]

TASK [debug]
***********************************************************************************************************************************************************************************************
ok: [xxxxxxxxxx] => {
"Provisioned_VirtualMachines.stdout_lines": [
"Vmid Name File Guest
OS Version Annotation ",
"1 Win2012 [datastore1] Win2012/Win2012.vmx
windows8Server64Guest vmx-14 ",
"12 VMware vCenter Server [datastore1] VMware vCenter Server/VMware vCenter Server.vmx
other3xLinux64Guest vmx-10 VMware vCenter Server Appliance",
"2 RHEL7.7 [datastore1] RHEL7.7/RHEL7.7.vmx
rhel7_64Guest

vmx-14 ",

Hi Racke,

Thanks a lot for the guidance from your side. Finally it started working.

Regards,
Jayan