copy src lookup

HI!

Is it possible to lookup the pathname of a local file on the ansible controller used in a
copy task for src: *before* performing the copy task?

Ciao, Michael.

Probably several ways of doing this - lookup plugin, conditional include_var come to mind. Plus you can use shell or command module, delegated to localhost and perhaps use set_fact to set the path name to use as src.

What are you trying to achieve? It might help to understand the problem you are trying to solve.