Commit graph

26 commits

Author SHA1 Message Date
Brian Coca
c6fdd3809f fixed typo EEXISTS is actually EEXIST
fixes #2585
2015-11-30 07:23:29 -08:00
Charles Ferguson
176b4103b6 Add documentation to 'file' AnsibleModule definition for internals.
The parameters 'diff_peek' and 'validate' are not expected to be used
by users. They are internal. To make it clear, this change adds the
comments 'Internal use only' to each of those definitions to make
it clear that they are actually used, just not by end-users.
2015-11-27 20:49:27 +00:00
Charles Ferguson
9325c0ae5f Update documentation for 'file' module to include 'diff_peek'.
The 'diff_peek' option isn't documented at all, and provides a
rudimentary check that the content isn't binary. Documentation is
added to explain the option.

The 'validate' option has a declaration, but isn't implemented.
Therefore it may as well be removed from the module.
2015-11-26 15:40:09 +00:00
varnav
07c5143a99 Fixed confusion in the docs
As 'path' is actually alias for 'dest', this could be confusing.
2015-09-23 08:24:16 +03:00
Brian Coca
ed179fe379 now captures any exceptions when trying to create directories 2015-07-01 10:39:50 -04:00
Matthew Gilliard
910728f6c3 Handle race condition in directory creation.
If we try to make a directory, but someone else creates the directory
at the same time as us, we don't need to raise that error to the user.
They asked for the directory to exist, and now it does. This fixes
the race condition which was causing that error to be raised, and
closes #1648.
2015-07-01 15:22:45 +01:00
Greg DeKoenigsberg
2a5f0bde87 Proper author info for all remaining modules 2015-06-15 15:53:30 -04:00
Tristan Fisher
fa9d2f56df removes bool type from validate. 2015-06-01 15:59:25 -07:00
Tristan Fisher
98061a8f33 standardizes bools in argument_spec 2015-06-01 15:57:59 -07:00
Greg Taylor
f38bf24c8a Adding directory creation example to file module. 2015-05-19 11:45:00 -07:00
Brian Coca
37532628c0 minor docfix 2015-05-19 10:44:17 -04:00
Tristan Fisher
90b34e2b67 removes bool type from validate. 2015-05-18 18:44:31 -04:00
Tristan Fisher
db292e08b9 standardizes bools in argument_spec 2015-05-15 17:09:54 -04:00
James Bowes
1e36b6b7f6 Fix C() formatting typo in file module 2015-03-10 21:43:45 -03:00
Brian Coca
62fa77fbf9 fixed file module to use realpath when following links,
readlink could be relative and fail in corner cases as per #852
2015-02-26 08:43:24 -05:00
Toshio Kuratomi
32e8595abf Merge pull request #790 from rhlmhrtr/file_documentation
Fixed Documentation issue concerning file mode
2015-02-16 13:21:13 -08:00
Rahul Mehrotra
98f869f345 Fixed Documentation issue concerning file mode when specified using numberical value 2015-02-16 10:04:32 -08:00
Toshio Kuratomi
aa6c73f11b When recursing subdirectories, honor the follow parameter for setting file attributes.
One half of the fix for
https://github.com/ansible/ansible-modules-core/issues/778
The other half is in basic.py
2015-02-16 07:13:15 -08:00
Brian Coca
78cacd0c22 fix for allowing permissions on hard links and soft links + follow=yes 2015-01-07 13:16:53 -05:00
Toshio Kuratomi
022e5274e6 Merge pull request #460 from jbinto/file_allow_touch_hardlink
Files module: Allow touch on hardlinks
2015-01-07 09:04:01 -08:00
Brian Coca
6237dab4cf fix for when state=directory, follow=yes and target is symlink to directory 2015-01-06 10:06:50 -05:00
sysadmin75
0fee1132ad Fixes #9518 - "file state=directory" silently skips if it's currently a file 2014-12-13 15:14:32 -05:00
Jesse Buchanan
2d5d7ff542 Files module: Allow touch on hardlinks 2014-12-07 13:35:24 -05:00
Toshio Kuratomi
19b328c4df Cannot readlink() on a hard link 2014-11-19 13:04:44 -08:00
Toshio Kuratomi
88b73afcbe Use original_basename to set the dest path even if src is not set 2014-10-20 22:25:18 -04:00
Michael DeHaan
c8e1a2077e file extensions! 2014-09-26 10:37:56 -04:00
Renamed from files/file (Browse further)