I’ve tried to using a variable in find module by pattern by it doesn’t seems to work. Here’s below a example. I also looked at another solution with set_facts but I doesn’t run too.
I want to list all the backup files in a directory. The files have a timestamp and it’s filename will be defined by variable.
Does anyone have an idea how should I proceed? or in which way?
I've tried to using a variable in find module by pattern by it doesn't seems to work. Here's below a example. I also looked at another solution with set_facts but I doesn't run too.
I want to list all the backup files in a directory. The files have a timestamp and it's filename will be defined by variable.
Does anyone have an idea how should I proceed? or in which way?