updated to use command instead of shell
diff --git a/tasks/main.yml b/tasks/main.yml
index c2cb9de..78f01e7 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -141,6 +141,6 @@
     file:
       path: "{{ item }}"
       state: absent
-    with_items: tmp_log_files.files
+    with_items: "{{ tmp_log_files.files }}"
 
   when: clear_logs is defined and clear_logs | bool == True
\ No newline at end of file