ansible/test/integration/targets/vmware_vswitch/tasks/teardown.yml
Gonéri Le Bouder 6e2fff1acc vmware_vswitch/test: clean up vmswitch_0002
Ensure `vmswitch_0002` get removed from ESXi2 at the end of the test.
2020-01-29 14:32:57 -05:00

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