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:
parent
286102eb5e
commit
82dedec011
1 changed files with 10 additions and 0 deletions
|
@ -11,6 +11,16 @@
|
||||||
setup_datastore: true
|
setup_datastore: true
|
||||||
setup_virtualmachines: 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
|
- name: send keys to virtual machine
|
||||||
vmware_guest_sendkey:
|
vmware_guest_sendkey:
|
||||||
validate_certs: False
|
validate_certs: False
|
||||||
|
|
Loading…
Reference in a new issue