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.
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.
sorry, i meant to say the value is not being changed on target machine but ansible shows it as changed.