OK, now I'm using the vmware_guest_facts module, which seems to be the way
to gather facts now. I'm using the exact same syntax as the example, still
doesn't work, Ansible asks me for the datacenter name, which is not
included in the example:
- name: Gather Facts about the VMs
> hosts: modify
> gather_facts: False
> connection: local
> vars_files:
> - group_vars/vault/lab_credentials.yml
> tasks:
> - name: gather the VM facts
> vmware_guest_facts:
> validate_certs: False
> hostname: "{{ vcenter_hostname }}"
> username: "{{ vcenter_user }}"
> password: "{{ vcenter_passwd }}"
> # name: "{{ guest_name }}"
> # name: ansclient111
> uuid: 502fa037-6612-a282-a2c7-0f08bd17f75b
> register: facts
On Wednesday, April 5, 2017 at 6:28:59 AM UTC-4, Kai Stian Olstad wrote:
>
> On 04.04.2017 23:01, Diego Puertas wrote:
> > Hello All,
> >
> > I'm using Ansible 2.3 RC2.
> >
> > According to the sample comments in the code
> > (
> https://github.com/ansible/ansible-modules-extras/blob/devel/cloud/vmware/vmware_guest.py),
>
>
> > this is all I need to get a VM facts:
>
> ansible-module-core and ansible-module-extras is merged in the Ansible
> code so they are not in use anymore.
> Please use the official documentation instead.
> https://docs.ansible.com/ansible/list_of_cloud_modules.html#vmware
>
> It's a new module that handles facts in 2.3.
>
> --
> Kai Stian Olstad
>
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2a96367b-0703-455e-bf2e-8b09f1d2b051%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.