Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-1160.53.1.el7.x86_64
Architecture: x86-64
STEPS TO REPRODUCE
usual execution of the playbook
- name: Get virtual machine info
community.vmware.vmware_vm_info:
hostname: "{{ r_vmware_pull_vm_data_hostname }}"
username: "{{ r_vmware_pull_vm_data_username }}"
password: "{{ r_vmware_pull_vm_data_pw }}"
vm_type: vm
validate_certs: no
## NEEDS TO BE ADAPTED ##
folder: "{{ folderOfVM }}"
delegate_to: localhost
register: vm_info`
EXPECTED RESULTS
Tags should contain keys and values. Attributes are empty in json output as well.
I am looking for a key which value I can manipulate on the VMware vSphere UI, that makes the VM unique to me.
SUMMARY
When running this plugin on vCenter 6.7 or 6.0 no attributes nor tags values are returned, although these are set for the specific VM.
ISSUE TYPE
COMPONENT NAME
community.vmware.vmware_vm_info
ANSIBLE VERSION
ansible 2.9.27 config file = /root/ansible/infrastructure-monitoring-dev-ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Nov 16 2020, 22:23:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-1160.53.1.el7.x86_64 Architecture: x86-64
STEPS TO REPRODUCE
usual execution of the playbook
EXPECTED RESULTS
Tags should contain keys and values. Attributes are empty in json output as well. I am looking for a key which value I can manipulate on the VMware vSphere UI, that makes the VM unique to me.
ACTUAL RESULTS
JSON output from vCenter 6.7:
JSON output from vCenter 6.0: