Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vmware Guest #68010

Closed
dfoley84-zz opened this issue Mar 4, 2020 · 3 comments
Closed

Vmware Guest #68010

dfoley84-zz opened this issue Mar 4, 2020 · 3 comments
Labels
affects_2.10 This issue/PR affects Ansible v2.10 needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@dfoley84-zz
Copy link

SUMMARY

While working with the New Ansible Module: "vmware_guest_info" with Ansible Version
While trying to get the Mac Address or the IP Address from the guest_info

ansible 2.9.4
  config file = /etc/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/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.17 (default, Nov  7 2019, 10:07:09) [GCC 9.2.1 20191008]
---
- hosts: localhost
  gather_facts: false
  tasks:
  - vmware_guest_info:
      hostname: 
      username: 
      password: 
      validate_certs: no
      datacenter: Test
      name: win201
      schema: "vsphere"
      properties: ["config.hardware.device.deviceInfo.summary"]
    delegate_to: localhost
    register: vminfo
  - debug:
      var: vminfo

JSON File:

"```
hardware": {
"_vimtype": "vim.vm.VirtualHardware",
"device": [
{
"_vimtype": "vim.vm.device.VirtualE1000",
"addressType": "assigned",
"backing": {
"_vimtype": "vim.vm.device.VirtualEthernetCard.NetworkBackingInfo",
"deviceName": "-POC",
"inPassthroughMode": null,
"network": "vim.-7017",
"useAutoDetect": false
},
"controllerKey": 100,
"deviceInfo": {
"_vimtype": "vim.Description",
"label": "Network adapter 1",
"summary": "-POC"
},
"externalId": null,
"key": 4000,
"macAddress": "00"

##### ISSUE TYPE
I'm getting the following Error :

fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "Information gathering failed with exception list indices must be integers, not str"}
@ansibot
Copy link
Contributor

ansibot commented Mar 4, 2020

Files identified in the description:
None

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Mar 4, 2020

@dfoley84: Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information.

Here are the items we could not find in your description:

  • ansible version
  • component name

Please set the description of this issue with this template:
https://raw.githubusercontent.com/ansible/ansible/devel/.github/ISSUE_TEMPLATE.md

click here for bot help

@ansibot ansibot added affects_2.10 This issue/PR affects Ansible v2.10 needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Mar 4, 2020
@Akasurde Akasurde closed this as completed Mar 4, 2020
@Akasurde
Copy link
Member

Akasurde commented Mar 4, 2020

@mkrizek mkrizek removed the needs_triage Needs a first human triage before being processed. label Mar 5, 2020
@ansible ansible locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

No branches or pull requests

4 participants