---
- name: get info vm
  hosts: localhost
  connection: local
  gather_facts: false
  tasks:
  - name: get info about the virtual machine
    vmware_guest_info:
      hostname: vcnerter
      username: 
      password: xxxxxxxx
      datacenter: DC
      validate_certs: False
      name: myvm
      schema: "vsphere"
      properties: ["config.hardware.memoryMB", "guest.disk", "overallStatus"
]
    delegate_to: localhost
    register: info
  

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3000e6a2-0db0-4bd5-8fba-ec114f5240e4%40googlegroups.com.

Reply via email to