community.general/lib/ansible/modules/files
Dag Wieers 1ad55ec9de Consistent path attribute for file-related modules
Not all file-related modules consistently use "path" as the attribute to specify a single filename, some use "dest", others use "name". Most do have aliases for either "name" or "destfile".

This change makes "path" the default attribute for (single) file-related modules, but also adds "dest" and "name" as aliases, so that people can use a consistent way of attributing paths, but also to ensure backward compatibility with existing playbooks.

NOTE: The reason for changing this, is that it makes Ansible needlessly harder to use if you have to remember that e.g. the xattr module requires the name attribute, the lineinfile module requires a dest attribute, and the stat module requires a path attribute.
2017-01-13 15:49:42 -05:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
acl.py Consistent path attribute for file-related modules 2017-01-13 15:49:42 -05:00
archive.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
assemble.py Resolving differences in core modules post-merge 2016-12-08 11:25:36 -05:00
blockinfile.py Consistent path attribute for file-related modules 2017-01-13 15:49:42 -05:00
copy.py Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00
fetch.py Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00
file.py Fix differences with devel. 2016-12-08 11:35:21 -05:00
find.py Fix code-blocks to use correct syntax highlighting 2017-01-08 09:18:45 -08:00
ini_file.py Consistent path attribute for file-related modules 2017-01-13 15:49:42 -05:00
lineinfile.py Consistent path attribute for file-related modules 2017-01-13 15:49:42 -05:00
patch.py minor spelling changes 2016-12-13 13:51:13 -05:00
replace.py Consistent path attribute for file-related modules 2017-01-13 15:49:42 -05:00
stat.py Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00
synchronize.py Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00
tempfile.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
template.py Add an important example for SSHd 2016-12-15 20:42:51 -05:00
unarchive.py updated unarchive docs for url handling 2017-01-06 16:21:55 -05:00
xattr.py Consistent path attribute for file-related modules 2017-01-13 15:49:42 -05:00