mirror of https://github.com/ansible/ansible.git
prepapre_vmware_tests: add a common vars file
Add a new file to record the variables that are shared with the two scenarios (real_lab and vcsim). The goal is to reduce the the amount of boilerplate configuration from a user perspective.pull/58213/head
parent
927c59fb9f
commit
db81b1d0f5
@ -1,6 +1,11 @@
|
||||
---
|
||||
|
||||
- name: load vmware common vars
|
||||
include_vars:
|
||||
file: common.yml
|
||||
|
||||
- when: vcsim is not defined
|
||||
import_tasks: init_real_lab.yml
|
||||
include_tasks: init_real_lab.yml
|
||||
|
||||
- when: vcsim is defined
|
||||
import_tasks: init_vcsim.yml
|
||||
include_tasks: init_vcsim.yml
|
||||
|
@ -0,0 +1,12 @@
|
||||
---
|
||||
dc1: DC0
|
||||
ccr1: DC0_C0
|
||||
ds1: LocalDS_0
|
||||
ds2: LocalDS_1
|
||||
f0: F0
|
||||
switch1: switch1
|
||||
esxi1: '{{ esxi_hosts[0] }}'
|
||||
esxi2: '{{ esxi_hosts[1] }}'
|
||||
esxi3: '{{ esxi_hosts[2] }}'
|
||||
dvswitch1: DVS0
|
||||
esxi_user: root
|
Loading…
Reference in New Issue