6e2fff1acc
Ensure `vmswitch_0002` get removed from ESXi2 at the end of the test.
16 lines
426 B
YAML
16 lines
426 B
YAML
- name: Remove the vSwitches (ESXi1)
|
|
vmware_vswitch:
|
|
hostname: '{{ esxi1 }}'
|
|
username: '{{ esxi_user }}'
|
|
password: '{{ esxi_password }}'
|
|
switch_name: vmswitch_0001
|
|
state: absent
|
|
|
|
- name: Remove the vSwitches (ESXi2)
|
|
vmware_vswitch:
|
|
hostname: '{{ esxi2 }}'
|
|
username: '{{ esxi_user }}'
|
|
password: '{{ esxi_password }}'
|
|
switch_name: vmswitch_0002
|
|
state: absent
|
|
when: esxi2 is defined
|