Toshio Kuratomi
5e4fe92676
Fix documentation build
2016-12-08 11:24:01 -05:00
Toshio Kuratomi
5f35d0d597
Document that synchronize in 2.0.0.x has broken sudo behaviour.
...
Part of the changes for #13825
2016-12-08 11:24:01 -05:00
Brian Coca
288a5c9a77
adds diff info for file info
2016-12-08 11:23:56 -05:00
Michael Scherer
83b45ae047
Fix doc inconsistency ( #2630 )
2016-12-08 11:23:55 -05:00
Brian Coca
63fd67f156
added mime option to stat module
...
it uses file magic to now return mime_type and charset of a file as
per output of `file -i /path`
2016-12-08 11:23:53 -05:00
Adam Fields
9c131ea619
added a reference to the template module for clarity
2016-12-08 11:23:52 -05:00
quoing
3ad67d93ea
Fix: Default ACL parameters are not correctly handled
2016-12-08 11:23:51 -05:00
Brian Coca
f0a3914f7b
simplified lowercasing
2016-12-08 11:23:50 -05:00
quoing
3a91853e7e
Add "default" entry option back (removed in e95bcae), update will translate entry to standard parameters so compatibility with BDS is kept
2016-12-08 11:23:50 -05:00
Ales Nosek
df4109d946
Fix #2475 ini_file module: bracklets in key break idempotence
...
Escape the regex special characters in the option name.
2016-12-08 11:23:50 -05:00
krdlab
fe0aa01ce8
Fix 'stat' module document
2016-12-08 11:23:50 -05:00
Dylan Martin
579e444243
improved error message when no handler found
2016-12-08 11:23:50 -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
Charles Paul
52d499d268
create non-existent ini file
...
fixing fail_json
more verbose fail msg
2016-12-08 11:23:48 -05:00
Maarten Claes
e0b8b0d789
This fixes copy with the remote_src option
...
It was broken in 6e37f1dcef0 when the remote_src was added. Need to
pass the absolute path to copy2 instead of a tuple.
2016-12-08 11:23:48 -05:00
Brian Coca
139201ad83
fixed remote_src support, now actually copies and does not move
2016-12-08 11:23:48 -05:00
Timothy Appnel
f2e83fa452
Added the checksum_algo alias to the stats module.
2016-12-08 11:23:47 -05:00
Ales Nosek
4e787f17cf
Make the syntax work with Python 2.4
2016-12-08 11:23:47 -05:00
Ales Nosek
bd03dd67ff
ini_file should only change what was specified and nothing more #5860
...
See also:
http://alesnosek.com/blog/2015/08/03/improving-ansibles-ini-file-module/
2016-12-08 11:23:47 -05:00
Brian Coca
f7f8df1773
since find doesn't make changes, support check mode and gather data for other tasks in check mode
2016-12-08 11:23:44 -05:00
Toshio Kuratomi
a179d06a91
Simplify logic to handle options set to empty string
...
Fixes #2125
2016-12-08 11:23:44 -05:00
Brian Coca
14455f4acc
final form, use_regex now controls if patterns is glob or regex - fixed cases in which stat fails (dangling symlink) - now properly reports name of skipped paths
2016-12-08 11:23:43 -05:00
Brian Coca
3e5dc1fd74
changed so regexes and shell globs work transparently
2016-12-08 11:23:43 -05:00
Ryan Sydnor
8a1c035fac
Add capability for stat module to use more hash algorithms
...
Specifically, the stat module now has a checksum_algorithm parameter.
This lets the module utilize one of the hash algorithms available on the host
to return the checksum of the file.
This change is backwards compatible. The checksum_algorithm defaults to
sha1 and still returns its result to the stat.checksum property.
2016-12-08 11:23:43 -05:00
Brian Coca
7c0dc323a2
corrected docs for stat's lnk_source fixes #12850
2016-12-08 11:23:42 -05:00
Brian Coca
baeb6d8dc0
fixed bug in spec
2016-12-08 11:23:42 -05:00
Brian Coca
a964754484
added regex support to find, also added 'singular' aliasess to patterns and paths
2016-12-08 11:23:42 -05:00
Brian Coca
d6f474761d
documented new remote_src option
2016-12-08 11:23:41 -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
Toshio Kuratomi
58573187f8
Change the example of rsync_opts to use a list instead of a string
...
Fixes #9889
2016-12-08 11:23:37 -05:00
James Cammarata
4a4674ca24
Fix syntax error in synchronize docstring
2016-12-08 11:23:36 -05:00
skylerbunny
dabf94ab1f
Explanation of privilege escalation in notes
...
An attempt to make clear how privilege escalation works with respect to the src/source host and dest/destination host. One existing note was incorporated into three new ones, iterating each.
2016-12-08 11:23:36 -05:00
Jérémie Astori
6695cc5c21
Fix physical walk on acl module for Linux
...
`-h` is for BSD [1] while `-P`/`--physical` is for Linux [2].
This commit fixes that option now that acl module is (temporarily)
only supported for Linux.
I will re-add `-h` when fixing BSD support.
[1]: http://www.freebsd.org/cgi/man.cgi?format=html&query=setfacl(1)
[2]: http://linuxcommand.org/man_pages/setfacl1.html
2016-12-08 11:23:33 -05:00
Jérémie Astori
186cc7cb17
Make sure entry is not sent when acl state=query
2016-12-08 11:23:33 -05:00
Jérémie Astori
3568f1cd78
Make sure permission-less entries are accepted when state=absent
...
Also, remove that try condition as, at that stage, no permissions with
other than 2 or 3 fields are sent to the function.
2016-12-08 11:23:33 -05:00
Jérémie Astori
a93445c798
Remove support for `d[efault]:` in entry permissions
...
It is not documented in [the Ansible doc page][1] nor
[the BSD setfacl man entry][2] (which means it might not be compatible
with BSD) so removing it does not break the API.
On the other hand, it does not conform with POSIX 1003.1e DRAFT
STANDARD 17 according to the [Linux setfacl man entry][3] so safer to
remove.
Finally, the most important reason: in non POSIX 1003.e mode, only ACL
entries without the permissions field are accepted, so having an
optional field here is very much error-prone.
[1]: http://docs.ansible.com/ansible/acl_module.html
[2]: http://www.freebsd.org/cgi/man.cgi?format=html&query=setfacl(1)
[3]: http://linuxcommand.org/man_pages/setfacl1.html
2016-12-08 11:23:33 -05:00
Jérémie Astori
1b34f1a7ac
Fix wrong expectation regarding entry format in acl module
2016-12-08 11:23:32 -05:00
Jérémie Astori
6c298e20c0
Fix wrong processing of lines returned by setfacl in test mode
2016-12-08 11:23:32 -05:00
Jérémie Astori
08e8f732c5
Fix minor whitespace issues
2016-12-08 11:23:32 -05:00
Matthias Frey
2ed50d5e5b
assemble: add file validation support.
2016-12-08 11:23:31 -05:00
Brian Coca
a1992ad890
updated encoding comment and expanded authors field
2016-12-08 11:23:31 -05:00
Jérémie Astori
288a9d8500
Set version number in recursive option description
2016-12-08 11:23:30 -05:00
Jérémie Astori
17170992c3
Ensure Python 2.4 compatibility and Linux-restricted support
...
- Make build_entry compatible with Python 2.4
- Re-add missing warning/comment that was forgotten while refactoring
- Replace `all()` with a good ol' for-loop Python 2.4 compatibility
- Make a condition check more explicit (when `state` is `query`)
- Make sure this module can only be run with on a Linux distribution
- Add a note about Linux-only support in the documentation
- Set the version in which recursive support was added, 2.0
2016-12-08 11:23:30 -05:00
Marius Gedminas
9ab2e9c740
Fix obvious copy-paste error in module docs
2016-12-08 11:23:30 -05:00
Toshio Kuratomi
a10b0e6fff
Modify the default for synchronize's dest_port again
2016-12-08 11:23:30 -05:00
Toshio Kuratomi
052320b452
Update docs to reflect precedence for synchronize's dest_port param
2016-12-08 11:23:29 -05:00
Toshio Kuratomi
9ba5a438a8
Allow mode as a synchronize parameter (handled in action plugin)
2016-12-08 11:23:29 -05:00
Markus Juenemann
47065c2a43
Removed check whether destination directory is writable from files/unarchive.py. This check will prevent extraction of an archive if the archive does not actually write to the destination directory but only writes to any writable sub-directories of it. The underlying tar command will report errors should it try to write to read-only directories.
2016-12-08 11:23:29 -05:00