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

**URL:** <https://forum.ansible.com/t/unable-to-recall-display-multiple-register-value-in-single-ansible-play-book/35176>\
**Category:** Ansible Project\
**Created:** [May 17, 2021, 9:06am UTC](https://forum.ansible.com/t/unable-to-recall-display-multiple-register-value-in-single-ansible-play-book/35176 "2021-05-17T09:06:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayan\_Anirudhan](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jayan\_Anirudhan](https://forum.ansible.com/u/Jayan_Anirudhan)\
**Post date:** [May 17, 2021, 9:06am UTC](https://forum.ansible.com/t/unable-to-recall-display-multiple-register-value-in-single-ansible-play-book/35176/1 "2021-05-17T09:06:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [May 17, 2021, 9:33am UTC](https://forum.ansible.com/t/unable-to-recall-display-multiple-register-value-in-single-ansible-play-book/35176/2 "2021-05-17T09:33:01Z")

</div>

> 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:  
&nbsp;&nbsp;msg: "{{Provisioned\_VirtualMachines.stdout\_lines }},{{ ESXi\_Version.stdout\_lines}}"

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 ",

---

<div class="post-metadata">

**Author:** ![Jayan\_Anirudhan](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jayan\_Anirudhan](https://forum.ansible.com/u/Jayan_Anirudhan)\
**Post date:** [May 17, 2021, 11:00am UTC](https://forum.ansible.com/t/unable-to-recall-display-multiple-register-value-in-single-ansible-play-book/35176/3 "2021-05-17T11:00:08Z")

</div>

Hi Racke,

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

Regards,  
Jayan
