prepare_vmware_tests: run test w/ just 1 vcsa (#65433)

Add the ability to run test with just a VCSA instance. This allow us to
test a subset of tests that don't need any ESXi nodes.
pull/65469/head
Gonéri Le Bouder 5 years ago committed by GitHub
parent daecbb9bf0
commit 974e8cec3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,8 +1,4 @@
---
- name: load vars
include_vars:
file: real_lab.yml
- include_tasks: teardown.yml
- when: setup_esxi_instance is not defined

@ -5,7 +5,17 @@
file: common.yml
- when: vcsim is not defined
include_tasks: init_real_lab.yml
block:
- when: esxi1_hostname is not defined and esxi2_hostname is not defined
include_vars:
file: vcenter_only.yml
- when: esxi1_hostname is defined and esxi2_hostname is defined
include_vars:
file: vcenter_with_2_nodes.yml
- when: vcsim is not defined
include_tasks: init_real_lab.yml
- when: vcsim is defined
include_tasks: init_vcsim.yml

@ -0,0 +1,6 @@
---
esxi_hosts: []
infra:
virtual_machines: []
virtual_machines_in_cluster: []
#esxi_password: ''
Loading…
Cancel
Save