Brian Coca
69b0e39220
added missing checksum alias
2016-12-08 11:24:07 -05:00
Brian Coca
4ec0ccd5ac
fixed option name mismatch, added aliases
...
also removed empty aliases
2016-12-08 11:24:06 -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
Jose Moreira
cc173b445e
Fixed module doc typos
2016-12-08 11:24:06 -05:00
Brian Coca
bbfb957bc1
recursive copy is not available(yet) on remote_src
2016-12-08 11:24:06 -05:00
Guruprasad
1b642fcf75
Fix typo in the copy module error message
...
Fix the typos in the error message shown on trying to use remote_src=yes for copying directories
2016-12-08 11:24:06 -05:00
Brian Coca
23c07ccf2c
cleaner error on recursive remote copy
...
TODO: add recursive copy support when remote_src=yes
probably need to make shared the logic in the action plugin.
2016-12-08 11:24:06 -05:00
Brian Coca
8d0d251003
removed 'overquoting' of example
...
fixes #3029
2016-12-08 11:24:05 -05:00
Tobias Wolf
1ecc8544f6
Add diff for both file contents and file attributes to lineinfile
...
Using the difflist feature added in ansible/ansible@c337293 we can add
two diffs to the `diff` dict returned as JSON: A `before` and `after` pair of
changed file contents and the diff of the file attributes.
n.b.: the difflist handling from the above commit is logically broken.
PR will follow.
Example output:
TASK [change line and mode] ************************************************************
changed: [localhost]
--- before: /tmp/sshd_config (content)
+++ after: /tmp/sshd_config (content)
@@ -65,21 +65,21 @@
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#MaxStartups 10:30:60
#Banner /etc/issue.net
# Allow client to pass locale environment variables
-AcceptEnv LANG LC_*
+AcceptEnv LANG LC_* GF_ENV_*
Subsystem sftp /usr/lib/openssh/sftp-server
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
--- before: /tmp/sshd_config (file attributes)
+++ after: /tmp/sshd_config (file attributes)
@@ -1,3 +1,3 @@
{
- "mode": "0700"
+ "mode": "0644"
}
2016-12-08 11:24:02 -05:00
Toshio Kuratomi
f6aa1ff9a4
Remove duplicate documentation fields
2016-12-08 11:24:01 -05:00
Toshio Kuratomi
ceba43e701
Better error message when rsync nad ssh aren't present where synchronize is run
...
Fixes https://github.com/ansible/ansible/issues/9305
2016-12-08 11:24:01 -05:00
Tobias Wolf
25ccb98d49
Add custom or 'prepared' diff field to synchronize module
...
This PR depends on pull requeest ansible/ansible#14105
rsync has a custom diff output that cannot easily be expressed as
`/usr/bin/diff before after`
2016-12-08 11:24:01 -05:00
Toshio Kuratomi
457dfb3b4b
Add an internal param instructing synchronize to replace localhost with the host that's being ssh'd from
2016-12-08 11:24:01 -05:00
Matt Martz
9e686c7294
Add note about precautions of using become with fetch. Addresses https://github.com/ansible/ansible/issues/14064
2016-12-08 11:24:01 -05:00
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
Jérémie Astori
edf531efd7
Add recursive support for ACL module ( fix #5053 , fix #5550 , fix #7276 )
2016-12-08 11:23:28 -05:00
Toshio Kuratomi
a01a800b65
Fi the local_rsync_path parameter used by the action plugin
2016-12-08 11:23:26 -05:00
James Cammarata
ba9ba7d0f5
In copy, set the mode before running th validation
...
Because some programs that do validation (like visudo) may require
the permissions to be more restricted.
Fixes ansible/ansible#11385
2016-12-08 11:23:26 -05:00
Brian Coca
56354731ce
fixed fragment docs
2016-12-08 11:23:26 -05:00
Mike Putnam
9623cd570c
Add missing GPLv3 License header
...
Fixes #1643
2016-12-08 11:23:25 -05:00
Jeff Widman
70b3290a3b
Move validate command into doc fragment and fix a few typos
2016-12-08 11:23:24 -05:00
Isaac Simmons
07ccd3c86b
Handle ini file properties that contain interpolation errors in the initial values
2016-12-08 11:23:23 -05:00
Patrik Lundin
88881415e9
synchronize: add flag for verifying target host.
...
Add the possibility to verify the target host using a "verify_host"
flag. It is disabled by default to not change the module behaviour.
2016-12-08 11:23:22 -05:00
Brian Coca
e4dd0d98d4
now captures any exceptions when trying to create directories
2016-12-08 11:23:21 -05:00
Brian Coca
60d160a2e9
Also document in example that unarchive download was added in 2.0
2016-12-08 11:23:20 -05:00
Mitchell Ludwig
b664603a4d
Improved stat documentation
2016-12-08 11:23:20 -05:00
Brian Coca
f8f4a7dcdf
added ignore hidden to assemble
2016-12-08 11:23:18 -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
verm666
6acfa5fcee
unarchive: fix @bcoca's remarks, issue #1575
2016-12-08 11:23:16 -05:00
verm666
b898cb656b
unarchive: fix work with 0 bytes archives
...
This change is in response to issue #1575
2016-12-08 11:23:15 -05:00
Vladimir Martsul
db646757c1
Add "force" description
...
Add "force" option description
2016-12-08 11:23:15 -05:00
gimoh
fd69c5687b
Do not insert extra newline if line already contains it
...
When using YAML multi-line strings, e.g.:
- lineinfile:
dest: /tmp/foo
line: >
foo
bar
the line already ends with a newline. If an extra newline is appended unconditionally it will lead to inserting an extra newline on each run.
2016-12-08 11:23:13 -05:00
Toshio Kuratomi
870446dd6b
Update version_added to 2.0 for the partial option
2016-12-08 11:23:12 -05:00
Juan Picca
81ea358b09
synchronize module: add partial option
2016-12-08 11:23:12 -05:00
Toshio Kuratomi
5f27a073ba
Bump amount of file to download in a chunk to 64k.
2016-12-08 11:23:11 -05:00
Jonathan Mainguy
dd0659c83d
add download ability to unarchive module
2016-12-08 11:23:11 -05:00
Ritesh Khadgaray
9c3f9d23c8
Add the ability to grep for content
2016-12-08 11:23:09 -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
jaypei
fbc8d4ca4a
use the right way to unescape line string Reference https://github.com/ansible/ansible/issues/10864
2016-12-08 11:23:03 -05:00
Brian Coca
322518d06c
stat doc fix fixes #1371
2016-12-08 11:23:02 -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
Toshio Kuratomi
7e5a4afb6b
Update module "imports" to new style
...
Fixes #1351
2016-12-08 11:23:00 -05:00
Toshio Kuratomi
20d7f929be
Fix use of codecs.escape_decode()
2016-12-08 11:22:59 -05:00
Toshio Kuratomi
5204e94bda
Slightly more future-proof version of the lineinfile fix
2016-12-08 11:22:59 -05:00
Toshio Kuratomi
1002fafedf
Correct lineinfile documentation about double quoting... Hasn't been the case for years.
2016-12-08 11:22:59 -05:00
Jason Paige
329266975b
update flat description
...
default behavior is to append the `hostname/path/to/file`, not prepend as currently stated by the flat arg docs
2016-12-08 11:22:59 -05:00
Brian Coca
0567404c03
generic fix for Exceptions that heppen when trying to set permissions on extracted files fixes ansible/ansible#10934 which is really a corner case
2016-12-08 11:22:58 -05:00
Ryan Hartkopf
118382ca70
synchronize: don't add ssh_args to ssh_opts when false or null
2016-12-08 11:22:56 -05:00
Matt Martz
1ceaa78dc0
Add version_added for the use_ssh_args option
2016-12-08 11:22:55 -05:00
Matt Martz
4faf0d59da
Add ability to specify using ssh_args in synchronize
2016-12-08 11:22:55 -05:00
Toshio Kuratomi
1ddae11bd1
Implement feature to return list of files in the archive
2016-12-08 11:22:54 -05:00
Brian Coca
9dc1f5693c
updated content description to discourage using as a tempalte module
2016-12-08 11:22:54 -05:00
Toshio Kuratomi
02b8e17f61
Tar --diff only sends output to stderr if a file is missing. Handle that case
...
Fixes #1064
2016-12-08 11:22:54 -05:00
Brian Coca
3f325408df
find module updated to be able to get checksums and stat data, also now it only stats a file once so it should be quite faster on large file sets
2016-12-08 11:22:53 -05:00
Brian Coca
a014bde3f0
switched to use python's built in os.separator vs using /
2016-12-08 11:22:53 -05:00
Toshio Kuratomi
a6643160c5
Fix stat code to return name of group owning the file rather than name of group that the file's owner belongs to.
...
Followup to #17
2016-12-08 11:22:50 -05:00
Brian Coca
c04c84887e
fix to return vals docs
2016-12-08 11:22:50 -05:00
James Bowes
0d3aed3e1f
Fix C() formatting typo in file module
2016-12-08 11:22:48 -05:00
Toshio Kuratomi
86f8a3d381
Clarify the documented behaviour of insertbefore slightly.
2016-12-08 11:22:46 -05:00
Piotr Gosławski
9dd4f22430
update docs for insertbefore/insertafter
2016-12-08 11:22:46 -05:00
Piotr Gosławski
d388516046
Fix behavior when insert* doesn't match anything
...
If insertbefore/insertafter didn't match anything, lineinfile module was doing nothing, instead of adding the line at end of fille as it's supposed to.
2016-12-08 11:22:46 -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
blxd
35c414c271
Added check mode support to the ini_file module
2016-12-08 11:22:45 -05:00
Brian Coca
1ca1a2ed98
fixed typo on isgid
2016-12-08 11:22:44 -05:00
Brian Coca
6e08dea567
fixed issues with stats return docs as per feedback
2016-12-08 11:22:44 -05:00
Brian Coca
47f84190a0
removed always for success, as data wont show on fail
2016-12-08 11:22:44 -05:00
Brian Coca
bcd6a6a3d5
draft for documenting module returns
2016-12-08 11:22:44 -05:00
mrsheepuk
31421374c0
Doc change - make clearer usage for existing remote file
...
Having read the doc for this module several times and completely missing that it can be used for existing remote archives, I propose this update to the wording to make clear from the top the two ways in which this module can be used.
2016-12-08 11:22:43 -05:00
Gauvain Pocentek
6c7b202a63
fetch: fix the flat parameter description
...
ansible-doc expects the value of the description field to be a list,
otherwise the output is not correct. This patch updates the flat
description to be a list.
2016-12-08 11:22:43 -05:00
Toshio Kuratomi
3aba0d5272
Fix for recursion traceback in copy with relative paths
...
This is a further fix for: https://github.com/ansible/ansible/issues/9092
when the relative path contains a subdirectory. Like:
ansible localhost -m copy -a 'src=/etc/group dest=foo/bar/'
2016-12-08 11:22:42 -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
Petros Moisiadis
f5961f9ecf
synchronize: use a single -F instead of -FF
...
This small change corrects behavior when one uses an .rsync-filter file to exclude some paths from both being transferred and being deleted, so that these excluded paths can be handled separately with different tasks (e.g. in order to deploy the excluded paths independently from the rest paths and notify handlers appropriately). The problem with the double -FF option is that it excludes the .rsync-filter file from being transferred to the receiver. However, deletions are done on the side of the receiver, so it is absolutely necessary the .rsync-filter file to be transferred to the receiver, so that the receiver knows what files to delete and what not to delete.
2016-12-08 11:22:42 -05:00
Toshio Kuratomi
e4a3e5fdd7
Prefer gtar to tar
...
Fixes #702
2016-12-08 11:22:40 -05:00
sysadmin75
2990358cd5
Fix #10059 - replace module does not obey follow=yes
2016-12-08 11:22:39 -05:00
Toshio Kuratomi
547c90554a
Standardize class names on Archive suffix.
...
This also removes the collision between the stdlib ZipFile class and the
module's ZipFile class
Fixes #681
2016-12-08 11:22:39 -05:00
Toshio Kuratomi
1728f9bba7
Add detection of uid,gid,mode changes when deciding whether an archive needs to be unarchived again.
2016-12-08 11:22:38 -05:00
Toshio Kuratomi
f9a6ec95b0
Implement user,group,mode,selinux settings for unarchive.
...
This is a partial fix for #234 . Still have to figure out how to
make change reporting work as we can no longer rely on tar's --compare
option
2016-12-08 11:22:38 -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
anatoly techtonik
59a700ad17
acl: Fix X support in ACL permissions
...
If you try to set rwX permissions, ACL fails to set them at all.
Expected:
$ sudo setfacl -m 'group::rwX' www
...
drwxrwxr-x 2 root root 4096 Nov 10 17:09 www
With Ansible:
acl: name=/var/www permissions=rwX etype=group state=present
...
drwxrw-r-x 2 root root 4096 Nov 10 17:30 www
x for group is erased. =/
2016-12-08 11:22:36 -05:00
Jeff Bradberry
60ed80f99a
Fix breakage in lineinfile check mode when target file does not exist.
...
Similarly to https://github.com/ansible/ansible/issues/6182 , checking of the file attributes should be avoided in check mode when the file didn't originally exist.
Also, avoid creating parent directories in check mode.
Fixes https://github.com/ansible/ansible/issues/9546
2016-12-08 11:22:33 -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
follower
b15a633103
Note that `rsync` must be installed on both local & remote machine
...
In particular, if `rsync` is not installed on the remote machine the following error message will be encountered:
"rsync error: remote command not found"
2016-12-08 11:22:31 -05:00
Michael Scherer
4e4e0cca17
Fix old ticket #9092 where a playbook can enter in recursion
...
This can be tested with this command :
ansible -c local -m copy -a 'src=/etc/group dest=foo/' all
This is a corner case of the algorithm used to find how we should
copy recursively a folder, and this commit detect it and avoid it.
Check https://github.com/ansible/ansible/issues/9092 for the story
2016-12-08 11:22:30 -05:00
Eric
11bd0fed9d
Fix lineinfile documentation typo
2016-12-08 11:22:28 -05:00
Toshio Kuratomi
f7fafa8c16
Cannot readlink() on a hard link
2016-12-08 11:22:27 -05:00
Jeff Geerling
5d103793ee
Add mention of fetch module to the copy module docs.
2016-12-08 11:22:25 -05:00
Toshio Kuratomi
34d65647bf
Move from md5 to sha1 to work on FIPS-140 enabled systems
2016-12-08 11:22:25 -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
Ted Timmons
6e900744f2
fix spelling
2016-12-08 11:22:23 -05:00
Jon Hadfield
f63ad7894e
Remove redundant check for creates argument.
2016-12-08 11:22:23 -05:00
Tadej Janež
9a845a03f4
Simplified condition in a stat module example testing if path is a directory.
2016-12-08 11:22:23 -05:00
James Cammarata
429ab56e14
Adding file doc fragment to those modules in files/ missing it
2016-12-08 11:22:23 -05:00
Joe Adams
6eda3cbee7
Added note to files/synchronize module about synchronizing two directories on the same host
2016-12-08 11:22:23 -05:00
Tongliang Liu
59477d2e9a
Added support of returning owner's group name in stat module
2016-12-08 11:22:23 -05:00
anatoly techtonik
90091b1277
files.stat: Expose path in returned result
...
This is needed to apply subsequent operation on tested path
2016-12-08 11:22:23 -05:00
Eric Hanchrow
e4ac716663
Tweak docs to mention `replace`
2016-12-08 11:22:23 -05:00
Major Hayden
e3449b6691
Updating SELinux example doc in lininefile module
...
Encouraging users to use this Ansible module to enable SELinux seems
like a better idea. It also warms Dan Walsh's heart.
Signed-off-by: Major Hayden <major@mhtx.net>
2016-12-08 11:22:23 -05:00
Michael DeHaan
ef2a2b9093
package files
2016-12-08 11:22:22 -05:00
Michael DeHaan
213e518165
file extensions!
2016-12-08 11:22:22 -05:00
Michael DeHaan
c7eec45b73
Restructuring.
2016-12-08 11:22:22 -05:00