# Ansible 2.0: slowdown, modified files, files/tasks always shown as changed?

**URL:** <https://forum.ansible.com/t/ansible-2-0-slowdown-modified-files-files-tasks-always-shown-as-changed/19655>\
**Category:** Ansible Project\
**Created:** [October 29, 2015, 10:02pm UTC](https://forum.ansible.com/t/ansible-2-0-slowdown-modified-files-files-tasks-always-shown-as-changed/19655 "2015-10-29T22:02:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mirko\_Friedenhagen](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Mirko\_Friedenhagen](https://forum.ansible.com/u/Mirko_Friedenhagen)\
**Post date:** [October 29, 2015, 10:02pm UTC](https://forum.ansible.com/t/ansible-2-0-slowdown-modified-files-files-tasks-always-shown-as-changed/19655/1 "2015-10-29T22:02:32Z")

</div>

Hello,

1) SLOWDOWN  
I just installed ansible-2.0.0-0.4.beta2-1.tar.gz and reran a playbook  
against a local Vagrant instance which configures an Apache with  
mod\_proxy for ca. 60 hosts.

1.9.4:  
- PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

myhost : ok=85 changed=4 unreachable=0 failed=0

real 0m28.980s  
user 0m4.650s  
sys 0m2.883s

2.0.0

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
myhost : ok=94 changed=2 unreachable=0 failed=0

real 1m34.762s  
user 1m5.606s  
sys 0m6.789s

Besides of the realtime you see an enormous increase in user time as well.

2) File differences due to line ends  
As you see with 1.9.4 4 files changed when switching back from 2.0 to  
1.9.4. This is due to missing empty lines at the end of templates with  
2.0

3) Files showing always as changed with 2.0:

- name: Create Cron-Jobs for foo on reboot  
&nbsp;&nbsp;cron:  
&nbsp;&nbsp;&nbsp;&nbsp;name: "foo-runs-reboot"  
&nbsp;&nbsp;&nbsp;&nbsp;cron\_file: "foo-runs-reboot"  
&nbsp;&nbsp;&nbsp;&nbsp;job: "{{foo\_command}}"  
&nbsp;&nbsp;&nbsp;&nbsp;special\_time: "reboot"  
&nbsp;&nbsp;&nbsp;&nbsp;user: root  
&nbsp;&nbsp;&nbsp;&nbsp;state: present  
- name: Create Cron-Jobs for foo every hour  
&nbsp;&nbsp;cron:  
&nbsp;&nbsp;&nbsp;&nbsp;name: "foo-runs-hourly"  
&nbsp;&nbsp;&nbsp;&nbsp;cron\_file: "foo-runs-hourly"  
&nbsp;&nbsp;&nbsp;&nbsp;job: "{{foo\_command}}"  
&nbsp;&nbsp;&nbsp;&nbsp;minute: "{{inventory\_hostname|constant\_sharding(60)}}"  
&nbsp;&nbsp;&nbsp;&nbsp;user: root  
&nbsp;&nbsp;&nbsp;&nbsp;state: present

These two commands are always shown as changed (constant\_sharding is a  
filter like Puppet's fqdn\_rand) with 2.0 I could not see any changes  
in sha1sum between different invocations.

Regards Mirko
