# Ansible 2.4 to 2.5 files - file module change

**URL:** <https://forum.ansible.com/t/ansible-2-4-to-2-5-files-file-module-change/27233>\
**Category:** Ansible Project\
**Created:** [April 10, 2018, 7:49pm UTC](https://forum.ansible.com/t/ansible-2-4-to-2-5-files-file-module-change/27233 "2018-04-10T19:49:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Garris](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Mike\_Garris](https://forum.ansible.com/u/Mike_Garris)\
**Post date:** [April 10, 2018, 7:49pm UTC](https://forum.ansible.com/t/ansible-2-4-to-2-5-files-file-module-change/27233/1 "2018-04-10T19:49:03Z")

</div>

Am I reading the docs correctly with regards to the file module being changed?

“Sets attributes of files” - [https://docs.ansible.com/ansible/2.4/list\_of\_files\_modules.html](https://docs.ansible.com/ansible/2.4/list_of_files_modules.html)

to  
“Read file contents” - [https://docs.ansible.com/ansible/latest/modules/list\_of\_files\_modules.html](https://docs.ansible.com/ansible/latest/modules/list_of_files_modules.html)

If so, I got some long night playbook updating to start here soon!

---

<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:** [April 10, 2018, 8:04pm UTC](https://forum.ansible.com/t/ansible-2-4-to-2-5-files-file-module-change/27233/2 "2018-04-10T20:04:17Z")

</div>

There is an issue with the docs generation that is confusing modules and other plugins of the same name. As such, you are seeing the doc information for the `file` lookup, on the “latest” docs.

The correct docs for the file modules can be seen at:

[http://docs.ansible.com/ansible/2.4/file\_module.html](http://docs.ansible.com/ansible/2.4/file_module.html)

[http://docs.ansible.com/ansible/latest/modules/file\_module.html](http://docs.ansible.com/ansible/latest/modules/file_module.html)

We hope to have this resolved soon.

---

<div class="post-metadata">

**Author:** ![Jan\_Fader](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@Jan\_Fader](https://forum.ansible.com/u/Jan_Fader)\
**Post date:** [April 11, 2018, 6:39pm UTC](https://forum.ansible.com/t/ansible-2-4-to-2-5-files-file-module-change/27233/3 "2018-04-11T18:39:19Z")

</div>

Hi Mike

> Am I reading the docs correctly with regards to the file module being  
> changed?

The module file.py in plugins still "Sets attributes of files"  
[https://github.com/ansible/ansible/blob/stable-2.5/lib/ansible/modules/files/file.py](https://github.com/ansible/ansible/blob/stable-2.5/lib/ansible/modules/files/file.py)  
in 2.5 but the link is pointing to the file.py in lookup-plugins.

Seems like this error is only in the documentation. I've checked a fresh  
build of the docs and the wrong link is already fixed there.

Regards  
Jan
