diff --git a/ansible/roles/cert-templates/tasks/main.yml b/ansible/roles/cert-templates/tasks/main.yml index 10e09bc5dcbefc7ec482e66709a3c303fce7d9f0..ae1f5160a17d82106dec5212c91ee0c3b7f3994d 100644 --- a/ansible/roles/cert-templates/tasks/main.yml +++ b/ansible/roles/cert-templates/tasks/main.yml @@ -47,3 +47,14 @@ async: 60 poll: 10 +- name: list all the files + shell: "ls -lR {{cert_location}}" + register: allfiles + +- debug: + var: allfiles + +- name: Remove unwanted files + file: + path: "{{cert_location}}/cert-templates" + state: absent