# module copy with content reports changes on every run

**URL:** <https://forum.ansible.com/t/module-copy-with-content-reports-changes-on-every-run/17362>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [January 23, 2015, 11:00am UTC](https://forum.ansible.com/t/module-copy-with-content-reports-changes-on-every-run/17362 "2015-01-23T11:00:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloos](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/cloos/32/7297_2.png) [@cloos](https://forum.ansible.com/u/cloos)\
**Post date:** [January 23, 2015, 11:00am UTC](https://forum.ansible.com/t/module-copy-with-content-reports-changes-on-every-run/17362/1 "2015-01-23T11:00:40Z")

</div>

Hi,

if i run a task with this:  
copy: dest=/etc/timezone content=“Europe/Berlin” owner=root group=root mode=0644  
it reports on every run changes.

Verbose output of two runs:  
changed: [xxx] =\> {“changed”: true, “checksum”: “d34f419876c03cf85365d9102477a4f5791451ae”, “dest”: “/etc/timezone”, “gid”: 0, “group”: “root”, “md5sum”: “f047a3577fcd6af23b47814293e293c0”, “mode”: “0644”, “owner”: “root”, “size”: 13, “src”: “/home/xxx/.ansible/tmp/ansible-tmp-1422009942.63-92526854461725/source”, “state”: “file”, “uid”: 0}

changed: [xxx] =\> {“changed”: true, “checksum”: “d34f419876c03cf85365d9102477a4f5791451ae”, “dest”: “/etc/timezone”, “gid”: 0, “group”: “root”, “md5sum”: “f047a3577fcd6af23b47814293e293c0”, “mode”: “0644”, “owner”: “root”, “size”: 13, “src”: “/home/xxx/.ansible/tmp/ansible-tmp-1422009987.9-92475302492184/source”, “state”: “file”, “uid”: 0}

The md5sum of the transfered content always doesn’t match the file content.

Control host: Ubuntu  
Destination Host: Debian  
ansible 1.8.2

Chris

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [January 23, 2015, 1:34pm UTC](https://forum.ansible.com/t/module-copy-with-content-reports-changes-on-every-run/17362/2 "2015-01-23T13:34:08Z")

</div>

Your problem is in the way you are using the content argument. Your string does not include a trailing newline, and when you run dpkg-reconfigure to update the timezone, dpkg-reconfigure will notice that there is no trailing newline and “fix it”. So every time your task runs, you are removing the trailing newline that dpkg-reconfigure adds to that file.

There is some discussion about this at [https://github.com/ansible/ansible/issues/5715](https://github.com/ansible/ansible/issues/5715)
