Capture the path from the list returned via find module

Hi all ,

I'm trying to find two XML files in all the locations only if it contains a severname and then pass the list of these files to the replace module to replace that severname by another string.

I'm able to get the file list via shell module but not via the find module.

I tried various options that I found online

Not sure if it will make a difference, but you have a space after “servername” in your contains: line.

That space is a typo in my post