updated to use command instead of shell
diff --git a/tasks/main.yml b/tasks/main.yml index 5ea11e2..d7b024c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -140,7 +140,7 @@ - name: Remove logs file: - path: "{{ item }}" + path: "{{ item.path }}" state: absent with_items: "{{ tmp_log_files.files }}"