Ansibles stat module only supports checking the md5 sum of the file.
But did and that verification to the check to see if the ossec archive already exists

http://docs.ansible.com/stat_module.html