How to compare two Directories/sub directories in 2 hosts with ansible

We have two linux(RHEL) hosts, I want to compare application directories between two hosts.