vmware_guest_sendkey/test: ensure the test VM is running (#63359)

The `vmware_guest_sendkey` module fails if the test VM is off. We this
commit, we ensures the VM is running.
This commit is contained in:
Gonéri Le Bouder 2019-10-10 22:22:36 -04:00 committed by Abhijeet Kasurde
parent 286102eb5e
commit 82dedec011

View file

@ -11,6 +11,16 @@
setup_datastore: true
setup_virtualmachines: true
- name: set state to poweron the first VM
vmware_guest_powerstate:
validate_certs: no
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
name: "{{ virtual_machines[0].name }}"
folder: '{{ f0 }}'
state: powered-on
- name: send keys to virtual machine
vmware_guest_sendkey:
validate_certs: False