Ansible find module , can path parameter include regex ?

Hi all ,

I'm trying to find files dit.xml under particular directories.

Rather than mentioning the directories as a list like below

Path : [ /opt/local/version_v1.3.1 , /opt/local/version_v1.3.0 ]

I tried /opt/local/version_v1.3.* and it didn't work.

Actually I have dit.xml files under /opt/local/version_v1.5.0 which I don't want to modify.

That's y looking for regex for paths.

Is it possible? Kindly suggest

Since it's not in the documentation it's not supported.

What you could do is first a find that finds the directories and exclude the once you don't want.
The result of that find is used in the second find to find the correct files.

Thank you Kai , I’ll try that out.