How does Ansible determine that a file has changed ?

32 views
Skip to first unread message

Micky Kerai

unread,
Jan 13, 2015, 8:18:11 PM1/13/15
to ansible...@googlegroups.com
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

Brian Coca

unread,
Jan 14, 2015, 7:37:35 AM1/14/15
to ansible...@googlegroups.com
ansible does a checksum on the files, if it does not match the files
are different.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages