6d645c127f
The vmware test roles do a lot of similar operation to prepare the environment. This role will be used to reduce the amount of duplicated code. The role can prepare an environment on a baremetal environment, this in addition to vcsim. Original PR: https://github.com/ansible/ansible/pull/54882
15 lines
397 B
YAML
15 lines
397 B
YAML
---
|
|
- name: Create the DVSwitch
|
|
vmware_dvswitch:
|
|
validate_certs: no
|
|
hostname: "{{ vcenter_hostname }}"
|
|
username: "{{ vcenter_username }}"
|
|
password: "{{ vcenter_password }}"
|
|
datacenter_name: '{{ dc1 }}'
|
|
switch_name: '{{ dvswitch1 }}'
|
|
switch_version: 6.0.0
|
|
mtu: 9000
|
|
uplink_quantity: 2
|
|
discovery_proto: lldp
|
|
discovery_operation: both
|
|
state: present
|