Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions test/integration/targets/vmware_guest_sendkey/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down