# replace module and lineinfile are not editing the file

**URL:** <https://forum.ansible.com/t/replace-module-and-lineinfile-are-not-editing-the-file/23067>\
**Category:** Ansible Project\
**Created:** [November 21, 2016, 7:55pm UTC](https://forum.ansible.com/t/replace-module-and-lineinfile-are-not-editing-the-file/23067 "2016-11-21T19:55:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![challa.tek](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Post date:** [November 21, 2016, 7:55pm UTC](https://forum.ansible.com/t/replace-module-and-lineinfile-are-not-editing-the-file/23067/1 "2016-11-21T19:55:37Z")

</div>

I want to change the value of " **readahead" to 256** , i have tried using both replace and lineinfile modules, both modules don’t seem to work. they show the task as changed but when i log in and see the value stays the same.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [November 21, 2016, 8:20pm UTC](https://forum.ansible.com/t/replace-module-and-lineinfile-are-not-editing-the-file/23067/2 "2016-11-21T20:20:09Z")

</div>

Here you say, run every task on the localhost.  
If you check the machine you are running Ansible from aka Control  
Machine you'll see that the files is changed there.

---

<div class="post-metadata">

**Author:** ![challa.tek](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Post date:** [November 21, 2016, 8:46pm UTC](https://forum.ansible.com/t/replace-module-and-lineinfile-are-not-editing-the-file/23067/3 "2016-11-21T20:46:39Z")

</div>

sorry, i meant to say the value is not being changed on target machine but ansible shows it as changed.
