module "file" - error in an example ?

Hi,

In the documentation of module “file” (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.

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

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, namedefines 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