ansible/test/integration/targets/prepare_vmware_tests/tasks/main.yml
Gonéri Le Bouder 8d6b9cf6e0 prepare_vmware_tests: add scenario with one ESXi
Add the ability to test with just one vcenter instance and a single
ESXi. This allow us to cover 90 modules.
2019-12-19 11:30:00 -05:00

25 lines
595 B
YAML

---
- name: load vmware common vars
include_vars:
file: common.yml
- when: vcsim is not defined
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 not defined
include_vars:
file: vcenter_1esxi.yml
- when: esxi1_hostname is defined and esxi2_hostname is defined
include_vars:
file: vcenter_2esxi.yml
- when: vcsim is not defined
include_tasks: init_real_lab.yml
- when: vcsim is defined
include_tasks: init_vcsim.yml