David Chwalisz
f979928ecc
file module: add clarification on state=absent re files that do not exist.
2016-12-08 11:24:46 -05:00
Michael Scherer
f7b29ba8fd
Convert the whole files/ directory to py3 syntax ( #3685 )
2016-12-08 11:24:29 -05:00
Michael Scherer
001ceb8dc6
Remove old test on SELinux ( #3510 )
...
since all is done in modules_utils/basic.py, no need to make
the same test here, especially since that's unused later
2016-12-08 11:24:20 -05:00
Brian Coca
a546775172
fixed typo, now correctly check isdir
...
fixes #3089
2016-12-08 11:24:07 -05:00
Brian Coca
b357f4dd72
added follow to specific modules that support it
...
was removed from common file docs
2016-12-08 11:24:06 -05:00
Brian Coca
288a5c9a77
adds diff info for file info
2016-12-08 11:23:56 -05:00
Brian Coca
3025451b10
fixed typo EEXISTS is actually EEXIST
...
fixes #2585
2016-12-08 11:23:50 -05:00
Charles Ferguson
4c93b5dab6
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.
2016-12-08 11:23:50 -05:00
Charles Ferguson
e86ba78685
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.
2016-12-08 11:23:49 -05:00
varnav
a05df49998
Fixed confusion in the docs
...
As 'path' is actually alias for 'dest', this could be confusing.
2016-12-08 11:23:37 -05:00
Brian Coca
e4dd0d98d4
now captures any exceptions when trying to create directories
2016-12-08 11:23:21 -05:00
Matthew Gilliard
17a40aa259
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 .
2016-12-08 11:23:16 -05:00
Greg DeKoenigsberg
eb881d7d5d
Proper author info for all remaining modules
2016-12-08 11:23:07 -05:00
Tristan Fisher
75ef963922
removes bool type from validate.
2016-12-08 11:23:03 -05:00
Tristan Fisher
0180be25c4
standardizes bools in argument_spec
2016-12-08 11:23:03 -05:00
Greg Taylor
79dd0466b5
Adding directory creation example to file module.
2016-12-08 11:23:00 -05:00
Brian Coca
b4775234c9
minor docfix
2016-12-08 11:23:00 -05:00
James Bowes
0d3aed3e1f
Fix C() formatting typo in file module
2016-12-08 11:22:48 -05:00
Brian Coca
d6305bc938
fixed file module to use realpath when following links, readlink could be relative and fail in corner cases as per #852
2016-12-08 11:22:45 -05:00
Toshio Kuratomi
af6c625cc2
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
2016-12-08 11:22:42 -05:00
Rahul Mehrotra
fe08f52d92
Fixed Documentation issue concerning file mode when specified using numberical value
2016-12-08 11:22:42 -05:00
Brian Coca
a3de4db57d
fix for allowing permissions on hard links and soft links + follow=yes
2016-12-08 11:22:37 -05:00
Brian Coca
9eb77bdb4f
fix for when state=directory, follow=yes and target is symlink to directory
2016-12-08 11:22:37 -05:00
Jesse Buchanan
06a58dcad7
Files module: Allow touch on hardlinks
2016-12-08 11:22:36 -05:00
sysadmin75
7fbb422ae7
Fixes #9518 - "file state=directory" silently skips if it's currently a file
2016-12-08 11:22:33 -05:00
Toshio Kuratomi
f7fafa8c16
Cannot readlink() on a hard link
2016-12-08 11:22:27 -05:00
Toshio Kuratomi
bcc058249c
Use original_basename to set the dest path even if src is not set
2016-12-08 11:22:24 -05:00
Michael DeHaan
213e518165
file extensions!
2016-12-08 11:22:22 -05:00