Makes sense the behavior, your playbook is attempting to power on the vm (state: poweredon) if the vm is already powered on then changed should be false.
Sent from my Samsung Galaxy smartphone.
-------- Original message --------
Date: 2018-11-10 10:21 PM (GMT-05:00)
Subject: [ansible-project] Module vmware_guest option powerdon/powerdoff not work OK
I do a playbook to start a virtual machine.
- name: Start vmware MV
vmware_guest:
hostname: xxxx
username: xxxx
password: xxx
validate_certs: no
name: {{server}}
state: poweredon
delegate_to: localhost
register: vmware_start
ok: [xxxx] => {
"vmware_start": {
"changed": false,
"failed": false
}
}
PLAY RECAP ******************************************************************************************
ssh.sva.itbatera.ejgv.eus : ok=3 changed=0 unreachable=0 failed=0
I execute the playbook and it doesn´t appear errors:
Even though the VM is powered on, it says '"Changed": false" and never actually powers off the VM.
--
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
ansible-proje...@googlegroups.com.
To post to this group, send email to
ansible...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/aa8443a0-721e-4e6f-832e-9eccd12d2e12%40googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.