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