forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmware_vswitch/test: clean up vmswitch_0002
Ensure `vmswitch_0002` get removed from ESXi2 at the end of the test.
- Loading branch information
Showing
2 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
test/integration/targets/vmware_vswitch/tasks/teardown.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |