I am new to Ansible.
I have such a directory:
home/etc/directory/
Which contains the following files:
application.yml
application.yml_new
application.yml.12345
etc.yml
What I want to do is to delete/remove the files
application.yml_new
application.yml.12345
I do not want to explicitly name these files but I want to delete all files with a suffix additional to application.yml
(since the names are slightly different depending on the application).
Now I am wondering how to do this?
I found the file
but I am not sure if I can do this with it or can it be only done with the shell
-module?