Commit Graph

177 Commits (1609dfbca4f7c867c02e946781267ab3e8ba9015)

Author SHA1 Message Date
James Tanner aaa44f9151 Add doc example for lineinfile without a regexp parameter 11 years ago
James Tanner 9ac91916c3 Merge pull request #4660 from kolbyjack/lineinfile_no_regexp 11 years ago
James Tanner 6694b28d51 Fix merge conflict 11 years ago
James Tanner 5c34ed0827 Addresses #4676 Add module notes about the behavior of sudo and the destination paths within the synchronize module. 11 years ago
James Tanner 9fb4be0e73 Update synchronize docstrings for rsync_timeout parameter 11 years ago
James Tanner 0adf095677 Add a timeout to the synchronize module to prevent infinite hangs while waiting on passwords for misconfigured users 11 years ago
sspans 904a129ac1 skip absolute path creation for old_src, not needed with the new relative links 11 years ago
sspans 684921c1c1 only require absolute paths for hardlinks 11 years ago
James Tanner f4b59fe285 Fixes #4516 file module: check prev_state earlier and use that if state is not specified 11 years ago
Brian Coca ac40d15120 now assemble module is also action plugin and can use local source for
files
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Daniel Koch dcdce838cf Clean up temp file left behind by assemble module 11 years ago
Michael DeHaan 99d6726114 Revert "fix conversion from file to hardlink when force=yes"
This reverts commit 4d4518ed52.
11 years ago
Michael DeHaan 3778b39115 Merge pull request #4380 from joshkehn/lineinfile_validate
Added validate option to lineinfile
11 years ago
Michael DeHaan 41ed5635dc Merge pull request #4632 from simonsd/devel
refusing to convert between file and hard when force=yes
11 years ago
jctanner 43f48a2e02 Merge pull request #4167 from tima/rsync3
synchronization module take 3
11 years ago
Jon Kolb ba7d05222a Fixes #3847: lineinfile without regex 11 years ago
Dave Simons 4d4518ed52 fix conversion from file to hardlink when force=yes
Signed-off-by: Dave Simons <dave@inuits.eu>
11 years ago
Dylan Martin 84152fec3f unarchive - mvd docs to top of file 11 years ago
Dylan Martin da9e2e765c better docs 11 years ago
Dylan Martin 2c28e1daea unarchive module & action_plugin added 11 years ago
jctanner c737f222d5 Merge pull request #4480 from joemaller/absent_path_fix
ignore src when file module state=absent
11 years ago
jctanner 51a1a54bfb Merge pull request #4428 from robparrott/devel
Properly handle DEFAULT section with ConfigParser in ini_file modules
11 years ago
Paul Sokolovsky 2e668f14f7 copy: Handle "no copy/propagate attrs only" for recursive mode well.
For this, add internal "original_basename" param to file module,
similar to copy module. (Param name is a bit misnormer now, should
be treated as "original basepath").
11 years ago
Paul Sokolovsky b3b4f9885f copy: Implement recursive copying if src is a directory.
If src param to copy is a directory, all files under it are collected
and pushed one by one to target. Source dir path handled in a way
simalar to rsync: if it ends with slash, only inside contents of
directory are copied to destination, otherwise the dir itself is
copied (with all contents of course). Original idea and implementation
by https://github.com/ansible/ansible/pull/1809 . Rewritten to address
review comments and simplify/correct logic.
11 years ago
jctanner 79071aee79 Merge pull request #4470 from jyap808/patch-1
Assume state='directory' if recurse is set and previous state was 'direc...
11 years ago
Michael DeHaan de3731a14e Some minor doc updates for the acl module. 11 years ago
Michael DeHaan 658b7d1f47 Merge pull request #3610 from bcoca/acl_module
initial draft acl module
11 years ago
Brian Coca 311892a567 added long names to support older version as per feedback
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Joe Maller 8597bf6bba ignore src when file module state=absent 11 years ago
Julian Yap 76cec9d360 Assume state='directory' if recurse is set and previous state was 'directory'
Resolves this issue: https://github.com/ansible/ansible/issues/2067
11 years ago
Andrew Pope 6342046da6 Fixed broken force=yes on files for directories 11 years ago
Robert Parrott 54aeaaf486 small change ... in order to get changed signal correct, move DEFAULT section test upward. 11 years ago
Robert Parrott 762135915c fix handling of [DEFAULT] section by ConfigParser. it is there by DEFAULT. 11 years ago
Jim Kleckner f231c86ff3 Add detail to copy module validate argument
This clarifies the validate command argument and makes it clear that if
it is present, it must include the '%s' argument for the path to the
temporary file to validate.
11 years ago
Michael DeHaan ce0efc8e25 Fix typo, relative to absolute, fixes #4126 11 years ago
Joshua Kehn cc0c908cee Added validate option to lineinfile
The validate option is constructed similarly to the template command's
validate option. TestRunner.py has been updated to include two new
tests, one for passing and one for failing validation.
11 years ago
Michael DeHaan b9c337e436 "touch" option on file is new in 1.4 11 years ago
Joshua Lund db8dd1dcc2 Fixed a typo in the fetch module documentation 11 years ago
James Cammarata 93336ce00d Merge branch 'devel' of https://github.com/volker48/ansible into volker48-devel 11 years ago
James Cammarata d647c5dc00 Added a delimiter example and a version_added string for assemble 11 years ago
James Cammarata a97872906f Fixed a bug in the delimiter change for the assemble module 11 years ago
James Cammarata bcf9a75d94 Merge branch 'devel' of https://github.com/pcgentry/ansible into pcgentry-devel 11 years ago
James Cammarata 4a467f71cd Change touched -> touch for new file state, and cleaning up docs 11 years ago
René Moser 3a0fd84115 file: added file attributes in state=touched 11 years ago
René Moser 573ea5bdce file: skip in check_mode if state=touched 11 years ago
René Moser 06fae59e8b file: implemented state=touched. Closes GH-4097 11 years ago
Phillip 4b5b6e91fe adding an optional delimiter argument to the assemble module 11 years ago
Timothy Appnel 99f616ecff Added docs for archive options in sychronize module. Added missing default value for dirs option. 11 years ago
Timothy Appnel c2e4129812 Modified changed marker in sychronize module 11 years ago
Timothy Appnel c1bec5fa07 Added archive options to sychronize module as suggested by @smoothify but with a different default scheme to keep param definitions to a minimum. 11 years ago
Timothy Appnel 4a30ba3a61 Added ingenious change detection trick from @smoothify though at the cost of verbosity controls. (Quiet or verbosity > 1 breaks change detection. Also added better use of module_common methods. 11 years ago
Timothy Appnel 90867d0d0a Removed busted tmp_dir option that was a bad idea to begin with. 11 years ago
Timothy Appnel 370784ef61 Updated version_added in sychronize module 11 years ago
Timothy Appnel 32ae6fdd43 Return of sychronize module code for take 3 11 years ago
James Cammarata cee2bddc24 Updated version_added string for the new validate_md5 option 11 years ago
James Cammarata d9cf1dfefb Merge branch 'fetch' of https://github.com/bpennypacker/ansible into bpennypacker-fetch 11 years ago
Brian Coca ef5b735cd5 now w/o python module dependencies
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
James Cammarata af139cd56a Merge branch 'file_fixes' of https://github.com/bcoca/ansible into bcoca-file_fixes 11 years ago
James Cammarata 4a30bac78b Corrected example for lineinfile due to ': ' on line
Closes #3992
11 years ago
Marcus McCurdy 46ff02bc57 Makes pervious lineinfile fix more explicit 11 years ago
Marcus McCurdy 64fa95ca11 Improves lineinfile's error checking
Line in file would raise a TypeError exception if
the 'line' key was in params, but its value was None.
11 years ago
Bruce Pennypacker cf6a76c814 changed ignore_md5_mismatch to validate_md5 11 years ago
Bruce Pennypacker 41c474d129 added optional ignore_md5_mismatch parameter 11 years ago
Brian Coca 0e2c63212c - fixed typos and errors from feedback
- now makes sure a proper mask is added
- now captures I/O error produced when group, user or permissions are
  invalid
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
James Cammarata 49b0ff18a7 Missed some typos in macros for the xattr doc 11 years ago
James Cammarata 230077fda9 Fixing docs in xattr module 11 years ago
James Cammarata 0747d41e76 Cleaning up some typos in the xattr module 11 years ago
James Cammarata 5e4f9657ca Merge branch 'xattr2' of https://github.com/bcoca/ansible into bcoca-xattr2 11 years ago
Michael DeHaan dacd311474 Removing synchronize momentarily as it looks like this won't make 1.3 dates 11 years ago
Brian Coca 49d7f22db8 now correctly detects hard links
simplified check_mode
simplified other file attribute handling in link mode
made conditionals clearer

Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Ben Podoll 3e32654f9d fixing problem causing docs not to build 11 years ago
Ben Podoll 13bef3579f adding a little more info to the 'path' param so it's clear there are aliases (which are used in other examples) to avoid confusion 11 years ago
Mark Mandel 6e3ec9ccc0 expand user home path in stat. 11 years ago
Michael DeHaan cde87f2f55 Add missing version_added to docs. 11 years ago
Michael DeHaan f8c97d6e79 Style/docs cleanup, and also improve an error message. 11 years ago
Brian Coca f451063ef2 fixed error on detecting missing requirements
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Bruce Pennypacker 0bbbefeb3f doc update 11 years ago
Michael DeHaan 19d78d6e18 Remove reference to 'context' since it's not implemented. 11 years ago
Brian Coca db22e2c7aa corrected absent example
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Brian Coca 0c7add6951 initial draft acl module
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Michael DeHaan e003f1e1cc Revert "Fix inconsistent json output"
Breaks recursion parameter on file.

This reverts commit e7226e104e.
11 years ago
Michael DeHaan cac5e7d168 Merge pull request #3516 from dagwieers/file-dest
Fix inconsistent json output in file module
11 years ago
Brian Coca b21f6fc591 new module that handles extended attributes on files
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Stephen Fromm 2af6510ded Update stat module to handle symlinks
Add follow parameter to stat module that controls whether to follow
symlinks.  It defaults to no.
This then calls os.stat or os.lstat based on the value of follow.
Add lnk_source key/value pair if path is a symlink and follow=no.
Drop the statement that sets isdir=False and islnk=True when path is a
symlink that points to a directory.
11 years ago
Dag Wieers e7226e104e Fix inconsistent json output
The file module would in some cases return dest=/path/to/file, and in other cases return path=/path/to/file, this change makes it more consistent and in line with all the other file-related modules (i.e. copy, assemble, template, ...) by using dest= instead of path= as the input and output argument. (Of course, path is still there as an alias for compatibility).
11 years ago
Michael DeHaan 2631823b8b Merge pull request #3425 from jpmens/stat1
files/stat: add pw_name and md5 sum to stat, and add meaningful? example
11 years ago
Michael DeHaan f8c7a3c654 Merge pull request #3406 from podollb/devel
fixing small mis-spelling
11 years ago
Michael DeHaan 4dfbbc4499 Revert "ini_file: add support for lists of options/values"
Breaks "," values in INI files

This reverts commit af051d6f77.
12 years ago
Jan-Piet Mens 9a82d8c692 files/stat: add pw_name and md5 sum to stat, and add meaningful? example
remove unnecessary import,
  md5 sum on regular files only
12 years ago
Ben Podoll 1bea4b1709 fixing small mis-spelling 12 years ago
Jan-Piet Mens f77c0a44f9 broken docs in files/file module!
remove obsolete examples: key
12 years ago
Michael DeHaan c9b6f0d0f2 Merge branch 'files_force' of git://github.com/rhaido/ansible into devel 12 years ago
Michael DeHaan 899ea4de82 Styling: indentation 12 years ago
Michael DeHaan 88c907af90 Merge pull request #3340 from bpennypacker/stat
get file/path facts via 'stat'
12 years ago
billwanjohi bf56d69df7 validate files: fix usage error in example command
visudo requires the -f option to check any other file than the default.
I've added this to the example ansible tasks.
12 years ago
Bruce Pennypacker c47d121481 don't fail if the file doesn't exist. Just set 'exists' to true/false as appropriate 12 years ago
Bruce Pennypacker 59a045e4cb Fixed stat of symlinked dirs 12 years ago
Bruce Pennypacker 19b8de7ede get file/path facts via 'stat' 12 years ago
Mike Grozak bba19cb998 Fixed typo 12 years ago
Mike Grozak 541b086883 Updated documentaion for the file module 12 years ago