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


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:


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


Leave a Reply