mirror of https://github.com/ansible/ansible.git
vmware_vswitch/test: clean up vmswitch_0002
Ensure `vmswitch_0002` get removed from ESXi2 at the end of the test.pull/66445/head
parent
e64b279ea1
commit
6e2fff1acc
@ -0,0 +1,16 @@
|
||||
- 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
|
Loading…
Reference in New Issue