May 10, 22
How to Delete Only Files Inside a Directory - Ansible module find
How to automate the search and delete of the files and directories inside a directory keeping the main folder with Ansible modules find and file.
Sep 9, 21
Delete file or directory - Ansible module file
A real-life example about how the "deleteme" file and the "deleteme" directory with Ansible. Tested in a target Linux machine as well for idempotency of the Ansible Playbook.