ansible ip address filter from files

Hello,

I am trying to filter ipv4 address from multiple files and put them in a output file. can you please help me how to filter ip from files and put them in target file

Here is my playbook I am trying to filter ipv4 from given files with output