Commit Graph

647 Commits (a4cddac368976f7fd7f97f5af0cf59d7fd032dfd)

Author SHA1 Message Date
John R Barker d21ac8a5da Merge pull request #5604 from samdoran/examples-syntax-fix-batch1
Examples syntax change batch1
9 years ago
Sam Doran 2ae8840c2c Change example syntax on template module 9 years ago
Sam Doran cc8cdd9506 > Change example syntax on synchronize module 9 years ago
Sam Doran 15890a4626 Change example syntax on stat module 9 years ago
Sam Doran 5ac9e53f97 Change example syntax on replace module 9 years ago
Sam Doran 942eb37a54 Change examples syntax on lineinfile module 9 years ago
Sam Doran 83f42ecfd4 Change examples syntax on ini_file module 9 years ago
Sam Doran 939da41dbd Change examples syntax on find module 9 years ago
Sam Doran 52274a400f Change examples syntax on file module 9 years ago
Sam Doran 07d1c1c3f7 Change examples syntax on fetch module 9 years ago
Sam Doran 501403a164 Change examples syntax on copy module 9 years ago
Sam Doran 7fc150c33b Change examples syntax on assemble module 9 years ago
Sam Doran 5ef188bcf1 Change examples syntax on acl module 9 years ago
Brian Coca 75411fa9e3 Revert "stat: doc: add version for new returns" 9 years ago
Brian Coca 88f1e67b1f added file flags/attributes to stat (#5358)
depends on http://github.com/ansible/ansible/issue/18213
also documented return version of fields added in 2.2
added get_mime to keep consistency
changed default mime behaviour
9 years ago
Gyorgy Szombathelyi 4863335cfa Ini_file: fix regression with the create option
The new create option with the default value 'no' changes the
behavior from the previous Ansible releases. Change the default to
'yes' to create missing ini files by default.

Fixes: #5488
9 years ago
René Moser 8c762d7b02 stat: doc: add version for new returns (#5594) 9 years ago
Michael Herold eac46e609c Removes outdated "requirement" and outdated "note" (#5332)
- 7f59773460 no longer uses `ConfigParser`
- 1d4c0abe29 removed the `import` statement
9 years ago
zuiurs cb1d90ccfd fix the behavior that the dest is directory
This fixes the behavior that the dest is directory,
when we set the "force: no" argument.
To be join the dest and the src's basename,
before checking the "force" argument.
9 years ago
bencomp 48cd199871 Make find return sample a YAML dict
In the description of the find module return value, the sample dict
has its key=value strings converted to key=value: None in the
web documentation. This commit updates the sample output to a 'real'
dict.

Minor additional edit in the description: "return list *of* files".
9 years ago
scottb 06d0987848 Merge pull request #5354 from tima/docs-sychronize
clarifies synchronize module docs
9 years ago
Evan Kaufman 087ba94e6b Exposed backup file path, simplified result args (#5364)
Fixes #245
9 years ago
Luca Berruti 9c766a9f88 ini_file: return more infos on changes. 9 years ago
Luca Berruti a5e6e4a134 ini_file: diff support. 9 years ago
Luca Berruti 486bedb5e5 ini_file: add create= option. 9 years ago
Luca Berruti 15d62dc17f ini_file: fixes #1788, fails --check when file doesn't exist. 9 years ago
Brian Coca 52e0536fae refactor stat
make format function 'format only'
added platform dependant info, when it is available
avoid rechecking same info
added comments to each info gathering section

(cherry picked from commit a79acf73d7eb79b76d808ff8a1d6c505dfd9ec82)
9 years ago
Charles Zaffery 952ad58bda Remove line when 'state: absent' with 'option:' instead of commenting 9 years ago
Timothy Appnel 38b5a66b7a clarifies synchronize module on use of --delayed-updates 9 years ago
Michael Scherer 953cd915bb Cleanup imports of xattr
Since the module use re and os, we need to import them.
And rather than importing '*', we should limit to the
only object/function needed, so we can more easily refactor
later.
9 years ago
Michael Scherer 15f8c6835b Fix unarchive on python3
Since handler.files_in_archive is a list of files coming from
various executables output, that's a bytes list, and we use it
with dest who is a str. So we need to convert that to native
type.
9 years ago
John R Barker 312f578f93 Bulk spelling improvement to modules-core (#5225)
* Correct spelling mistakes

* Correct more spelling issues

* merge conflict

* Revert typo in parms
9 years ago
Toshio Kuratomi e4c5a13a7a Fix assemble module for python3 9 years ago
Matt Clay 0a7ebef14e Detect tar type (bsd, gnu) and only use gnu tar. (#4352)
* Detect tar type (bsd, gnu) and only use gnu tar.

* Revert return code checking for TgzArchive.
9 years ago
Andrew Gaffney 622ae9c67e Match existing INI file entry with leading whitespace (fixes #4997) (#4998) 9 years ago
JesseEmond 1f741b69f4 Unarchive stop passing file mode to tar command (#4179)
Fixes #4063.

Tar does not use this parameter on extraction (-x) or diff (-d)(the
only two cases where it is passed in unarchive). It only uses it on
creation:
https://www.gnu.org/software/tar/manual/html_section/tar_33.html

Providing `unarchive` with a file mode of `0755` (octal) makes it pass
the argument `--mode 493` (493 = 0755 in decimal) to `tar`, which then
fails while verifying it (because it contains an invalid octal char
'9'). Not passing the parameter to tar solves the issue.
9 years ago
nichivo 8886afd145 Insert missing option line before blank lines (#4747) 9 years ago
Brian Maddy 3b0bc3e79e typo in stat.executable (was stat.excutable) (#4886)
I didn't actually run this because it's so simple, but it seems correct.
9 years ago
Dag Wieers c776932ca3 Don't add included files as arguments on the command line (#4626)
This means we will have to unarchive the complete archive if a single change is found.
Unfortunately we cannot fix this for `unzip`, the only hope is a pure-python reimplementation.

This fixes problems reported in the comments of #3810
9 years ago
Dag Wieers 1cda0b1819 Ensure unicode characters in zip-compressed filenames work correctly (#4702)
* Ensure unicode characters in zip-compressed filenames work correctly

Another corner-case we are fixing hoping it doesn't break anything else.

This fixes:
- The correct encoding of unicode paths internally (so the filenames we scrape from the output and is returned by zipfile match)
- Disable LANG=C for the unzip command (because it breaks the unicode output, unlike on gtar)

* Fix for python3 and other suggestions from @abadger
9 years ago
Brian Coca 1d4c0abe29 added backup_file to module returns (#4723)
fixes #14502
also cleaned up some unused stuff and fixed imports
9 years ago
Dag Wieers dfb170cab9 Support DOS file attributes (e.g. archive-bit or hidden-bit) (#4705)
This fixes #4554
9 years ago
Evan Kaufman f7b34c810a Declare empty diff dict ahead of time (#4646)
Fixes #4634
10 years ago
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)
10 years ago
Toshio Kuratomi 7e79c59d38 to_text, to_bytes, and to_native now have surrogate_or_strict error handler (#4630)
On python3, we want to use the surrogateescape error handler if
available for filesystem paths and the like.  On python2, have to use
strict in these circumstances.  Use the new error strategy for to_text,
to_bytes, and to_native that allows this.
10 years ago
Evan Kaufman 5728ef89f0 Implemented file content diff for replace module (#4479) 10 years ago
James Pharaoh 5bce0049a1 fix error in documentation for stat checksum (#4582) 10 years ago
Gennady Trafimenkov 6ac58a5832 Clarify what checksum algorithm is used by copy modules (#4198) 10 years ago
Toshio Kuratomi 4912ec30a7 Fixes for lineinfile (#4553)
Lineinfile deals heavily with Unic text files.  Makes some sense to deal
with it all as byte strings.  So there is a lot of work done here to
show that we're dealing with byte strings throughout.
10 years ago
Dag Wieers 9ea56d26b0 Fix multiple issues with unzip and gtar support (#4131)
* Improve the correct handling of gtar and unzip options

Add the option --show-transformed-names when extra_opts is being used
Ignore bogus warnings related to empty filenames
Properly quote _and_ escape filenames for unzip command
Rewrite gtar options and provide run_command with array, not string

This fixes #2480 and #4109.

* Make check-mode work for zip-files

Check-mode was disabled for zip-files since gtar did not support it.
This change enables check-mode support for zip-files, but does skip the task when used with gtar.
(Best of both worlds)

Also remove unused compress_mode variable.

This replaces PR #4401, the changes overlap somewhat so I merged them
10 years ago