Please as said by another people here, respect indentations stricly !
vmware_guest_info& name have not the same indentation as written by A.
Kasurde
Regards,
JYL
Le 18/04/2020 à 22:14, Tony Wong a écrit :
this is the playbook
---
- 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: [email protected]
password: xxxxxxxx
validate_certs: False
name: myvm
schema: "vsphere"
properties: ["config.hardware.memoryMB", "guest.disk",
"overallStatus"]
datacenter: DC
register: info
On Sat, Apr 18, 2020 at 1:11 PM Dick Visser <[email protected]
<mailto:[email protected]>> wrote:
That module was introduced in ansible 2.5:
https://docs.ansible.com/ansible/latest/modules/vmware_guest_powerstate_module.html
Do you run an older version?
On Sat, 18 Apr 2020 at 20:22, Tony Wong <[email protected]
<mailto:[email protected]>> wrote:
Hi
why is it when i run this playbook I get this error
tony@ubuntu:~/ansiblework$ ansible-playbook vmware_tools.yml
[WARNING]: provided hosts list is empty, only localhost is
available. Note that the implicit localhost does not match 'all'
ERROR! no action detected in task. This often indicates a
misspelled module name, or incorrect module path.
The error appears to be in
'/home/tony/ansiblework/vmware_tools.yml': line 9, column 5,
but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name: Get information about the virtual machine
^ here
--
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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/201e9930-5b7d-432e-b801-d19070f1c81d%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/201e9930-5b7d-432e-b801-d19070f1c81d%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Sent from a mobile device - please excuse the brevity, spelling
and punctuation.
--
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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAL8fbwNCN3M5sh3H%3D4rFgO3d1TRXogadBjxd4CnyQCn%2BeG%3DANg%40mail.gmail.com
<https://groups.google.com/d/msgid/ansible-project/CAL8fbwNCN3M5sh3H%3D4rFgO3d1TRXogadBjxd4CnyQCn%2BeG%3DANg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CALmkhkrJZNWzwge_XJFc_Qjac1epTEqvCZS%2BkDRCGDyEqMBNUw%40mail.gmail.com
<https://groups.google.com/d/msgid/ansible-project/CALmkhkrJZNWzwge_XJFc_Qjac1epTEqvCZS%2BkDRCGDyEqMBNUw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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/7a8b6085-680e-646b-e670-832463387686%40lenhof.eu.org.