Toshio Kuratomi
42c74a0ce2
Python3 fixes to copy, file, and stat so that the connection integration tests can be run ( #4632 )
...
* Python3 fixes to copy, file, and stat so that the connection integration tests can be run
* Forgot to audit the helper functions as well.
* Fix dest to refledt b_dest (found by @mattclay)
8 years ago
David Chwalisz
afff84321d
file module: add clarification on state=absent re files that do not exist.
8 years ago
Michael Scherer
69ea617093
Convert the whole files/ directory to py3 syntax ( #3685 )
9 years ago
Michael Scherer
0300b2add1
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
9 years ago
Brian Coca
c50ca43d8d
fixed typo, now correctly check isdir
...
fixes #3089
9 years ago
Brian Coca
8c2ef29a7a
added follow to specific modules that support it
...
was removed from common file docs
9 years ago
Brian Coca
48bd80c9cb
adds diff info for file info
9 years ago
Brian Coca
c6fdd3809f
fixed typo EEXISTS is actually EEXIST
...
fixes #2585
9 years ago
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.
9 years ago
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.
9 years ago
varnav
07c5143a99
Fixed confusion in the docs
...
As 'path' is actually alias for 'dest', this could be confusing.
9 years ago
Brian Coca
ed179fe379
now captures any exceptions when trying to create directories
10 years ago
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 .
10 years ago
Greg DeKoenigsberg
2a5f0bde87
Proper author info for all remaining modules
10 years ago
Tristan Fisher
fa9d2f56df
removes bool type from validate.
10 years ago
Tristan Fisher
98061a8f33
standardizes bools in argument_spec
10 years ago
Greg Taylor
f38bf24c8a
Adding directory creation example to file module.
10 years ago
Brian Coca
37532628c0
minor docfix
10 years ago
Tristan Fisher
90b34e2b67
removes bool type from validate.
10 years ago
Tristan Fisher
db292e08b9
standardizes bools in argument_spec
10 years ago
James Bowes
1e36b6b7f6
Fix C() formatting typo in file module
10 years ago
Brian Coca
62fa77fbf9
fixed file module to use realpath when following links,
...
readlink could be relative and fail in corner cases as per #852
10 years ago
Toshio Kuratomi
32e8595abf
Merge pull request #790 from rhlmhrtr/file_documentation
...
Fixed Documentation issue concerning file mode
10 years ago
Rahul Mehrotra
98f869f345
Fixed Documentation issue concerning file mode when specified using numberical value
10 years ago
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
10 years ago
Brian Coca
78cacd0c22
fix for allowing permissions on hard links and soft links + follow=yes
10 years ago
Toshio Kuratomi
022e5274e6
Merge pull request #460 from jbinto/file_allow_touch_hardlink
...
Files module: Allow touch on hardlinks
10 years ago
Brian Coca
6237dab4cf
fix for when state=directory, follow=yes and target is symlink to directory
10 years ago
sysadmin75
0fee1132ad
Fixes #9518 - "file state=directory" silently skips if it's currently a file
10 years ago
Jesse Buchanan
2d5d7ff542
Files module: Allow touch on hardlinks
10 years ago
Toshio Kuratomi
19b328c4df
Cannot readlink() on a hard link
10 years ago
Toshio Kuratomi
88b73afcbe
Use original_basename to set the dest path even if src is not set
10 years ago
Michael DeHaan
c8e1a2077e
file extensions!
10 years ago