summaryrefslogtreecommitdiff
path: root/test/integration/targets/prepare_vmware_tests/tasks/main.yml
blob: 91a6b9ca091d584cd535979e2b7a7f59e3e3f357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---

- 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