# module "file" - error in an example ?

**URL:** <https://forum.ansible.com/t/module-file-error-in-an-example/14517>\
**Category:** Ansible Project\
**Created:** [February 7, 2014, 12:00pm UTC](https://forum.ansible.com/t/module-file-error-in-an-example/14517 "2014-02-07T12:00:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laurent\_CREPET](https://avatars.discourse-cdn.com/v4/letter/l/71e660/32.png) [@Laurent\_CREPET](https://forum.ansible.com/u/Laurent_CREPET)\
**Post date:** [February 7, 2014, 12:00pm UTC](https://forum.ansible.com/t/module-file-error-in-an-example/14517/1 "2014-02-07T12:00:53Z")

</div>

Hi,

In the documentation of module “file” ([http://docs.ansible.com/file\_module.html](http://docs.ansible.com/file_module.html)), the following example refers to parameter “dest”:

file: src=/file/to/link/to dest=/path/to/symlink owner=foo group=foo state=link

The parameter “dest” is missing from the list of parameters. I assume the example should use “path” instead of “dest”.

– Laurent.

---

<div class="post-metadata">

**Author:** ![Mark\_Janssen](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark\_Janssen](https://forum.ansible.com/u/Mark_Janssen)\
**Post date:** [February 7, 2014, 6:24pm UTC](https://forum.ansible.com/t/module-file-error-in-an-example/14517/2 "2014-02-07T18:24:37Z")

</div>

No, the ‘dest’ parameter is documented in the copy module. The file module extends on the copy module. The existing documentation does reference this.

Mark

---

<div class="post-metadata">

**Author:** ![Walid](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@Walid](https://forum.ansible.com/u/Walid)\
**Post date:** [February 7, 2014, 8:31pm UTC](https://forum.ansible.com/t/module-file-error-in-an-example/14517/3 "2014-02-07T20:31:15Z")

</div>

read carefully under path, it mentions the alias dest:

path= defines the file being managed, unless when used with `state=link`, and then sets the destination to create a symbolic link to using _src_. Aliases: _dest_, _name_defines the file being managed, unless when used with `state=link`, and then sets the destination to create a symbolic link to using _src_. **Aliases:**  **_dest_, _name_**

may be it needs to be made more clearer, as many people will miss that
