From 771a9eebcf96599cc70fcf97b03f056c325fb924 Mon Sep 17 00:00:00 2001 From: Ajpantuso Date: Fri, 24 Sep 2021 00:59:52 -0400 Subject: [PATCH] Initial commit (#285) --- .../targets/openssh_keypair/tests/regenerate.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/integration/targets/openssh_keypair/tests/regenerate.yml b/tests/integration/targets/openssh_keypair/tests/regenerate.yml index fb2927f1..cc8c0b67 100644 --- a/tests/integration/targets/openssh_keypair/tests/regenerate.yml +++ b/tests/integration/targets/openssh_keypair/tests/regenerate.yml @@ -5,12 +5,18 @@ #################################################################### # Ensures no conflicts from previous test runs +- name: "({{ backend }}) Find old test artifacts" + ansible.builtin.find: + paths: "{{ remote_tmp_dir }}" + patterns: + - "regenerate*" + register: old_test_artifacts + - name: "({{ backend }}) Cleanup Output Directory" ansible.builtin.file: - path: "{{ item }}" + path: "{{ item.path }}" state: absent - with_fileglob: - - "{{ remote_tmp_dir }}/regenerate*" + loop: "{{ old_test_artifacts.files }}" - name: "({{ backend }}) Regenerate - setup simple keys" openssh_keypair: