How does Ansible determine that a file has changed ?

Hi,

A rather basic query. How does Ansible determine that a file has changed on the target ? The copy module’s ‘force’ option documentations reads as follows :-

“default is yes, which will replace the remote file when contents are different than the source”

How does Ansible determine that the file contents are different ?

_Micky

ansible does a checksum on the files, if it does not match the files
are different.