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.
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}}