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.
pull/63373/head
Gonéri Le Bouder 5 years ago committed by Abhijeet Kasurde
parent 286102eb5e
commit 82dedec011

@ -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

Loading…
Cancel
Save