updated to allow clear_logs
diff --git a/tasks/main.yml b/tasks/main.yml
index c27f99f..c2cb9de 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -135,4 +135,12 @@
       file_type: 'file'
     register: tmp_log_files
 
-  when: clear_logs is defined and clear_logs
\ No newline at end of file
+  - debug: var=tmp_log_files
+
+  - name: Remove logs
+    file:
+      path: "{{ item }}"
+      state: absent
+    with_items: tmp_log_files.files
+
+  when: clear_logs is defined and clear_logs | bool == True
\ No newline at end of file