Commit Graph

5 Commits (1718719d779038751b96ffc7300efe6e5c9cee37)

Author SHA1 Message Date
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
Carlos E. Garcia 0b8011436d minor spelling changes 2016-12-13 13:51:13 -05:00
Hans-Joachim Kliemeck 41ab7f8aed do not move item, instead copy item because acl will be kept 2016-12-08 11:23:57 -05:00
Chris Church 7eb7efb737 Fix win_lineinfile to pass integration tests when strict mode is enabled. 2016-12-08 11:23:36 -05:00
Brian Lloyd e6ffb60855 Windows implementation of lineinfile and related documentation 2016-12-08 11:23:31 -05:00