Ansible – how to register output from “FIND” module and use in other

Question:

I need to find a files in unknown directory place and remove them.
Tried to use “find” module, register its output, and pass it to “file”.

Even if I see path registered, I can not use it later:

My playbook is:

Answer:

There’s a syntax flaw in file task – space after =.

Try:

Leave a Reply