vmware_guest_disk_info/test: ensure the test VM is running

`vmware_guest_disk_info` expects the VM to be running. Since
964783fbd2, `prepare_vmware_tests`
creates the test VM with the `powered-off` state. This to increase
the performance.

This commit ensures the test-suite actually run against a running VM,
as expected.
pull/61384/head
Gonéri Le Bouder 5 years ago
parent ef69f3a3b5
commit d29aaffb16

@ -9,6 +9,15 @@
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: Gather facts about virtual machine disks
vmware_guest_disk_facts: &get_facts

@ -9,6 +9,15 @@
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: Gather info about virtual machine disks
vmware_guest_disk_info: &get_info

Loading…
Cancel
Save