diff options
author | Gonéri Le Bouder <goneri@lebouder.net> | 2019-08-27 16:47:38 +0200 |
---|---|---|
committer | Gonéri Le Bouder <goneri@lebouder.net> | 2019-08-27 17:30:44 +0200 |
commit | ef69f3a3b575a5dc790b7952edf0e64f6c80ba2c (patch) | |
tree | 3bc53f73508ea5f01fd8788051a1cc93f2760d86 /test/integration/targets/prepare_vmware_tests | |
parent | Added vserver to lun_info field to ensure unique LUN dict keys (#61357) (diff) | |
download | ansible-ef69f3a3b575a5dc790b7952edf0e64f6c80ba2c.tar.xz ansible-ef69f3a3b575a5dc790b7952edf0e64f6c80ba2c.zip |
vmware/test: clean up dvswitch_0001 and dvswitch_0002
Ensure `dvswitch_0001` and `dvswitch_0002` won't remain after
`vmware_dvswitch` test execution.
Diffstat (limited to 'test/integration/targets/prepare_vmware_tests')
-rw-r--r-- | test/integration/targets/prepare_vmware_tests/tasks/teardown.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/integration/targets/prepare_vmware_tests/tasks/teardown.yml b/test/integration/targets/prepare_vmware_tests/tasks/teardown.yml index 3a5ad11e91..a16e69b4fd 100644 --- a/test/integration/targets/prepare_vmware_tests/tasks/teardown.yml +++ b/test/integration/targets/prepare_vmware_tests/tasks/teardown.yml @@ -31,8 +31,12 @@ username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" datacenter_name: '{{ dc1 }}' - switch_name: '{{ dvswitch1 }}' state: absent + switch_name: '{{ item }}' + loop: + - '{{ dvswitch1 }}' + - dvswitch_0001 + - dvswitch_0002 ignore_errors: yes - name: Remove the vSwitches |