Linux Compare Two hosts operating system versions and applications versions

This is to check Disaster recovery hosts are having same configuration/OS levels/application versions as DC hosts. Any idea how to auto mate this with ansible?