From 2388126bdf464ebaa68caaf746c1c2ca62cd2ce1 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Thu, 4 Oct 2018 05:51:01 +1000 Subject: [PATCH] win_chocolatey: remove test packages after tests are run (#46431) (cherry picked from commit 1de88cbaa93c20266336bb41e2ca1556e643229e) --- test/integration/targets/win_chocolatey/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/integration/targets/win_chocolatey/tasks/main.yml b/test/integration/targets/win_chocolatey/tasks/main.yml index e4f99d5353b..b50335a08b6 100644 --- a/test/integration/targets/win_chocolatey/tasks/main.yml +++ b/test/integration/targets/win_chocolatey/tasks/main.yml @@ -91,6 +91,11 @@ include_tasks: tests.yml always: + - name: ensure test package is uninstalled after tests + win_chocolatey: + name: '{{ test_choco_packages }}' + state: absent + - name: remove test sources win_chocolatey_source: name: '{{ item }}'