summaryrefslogtreecommitdiffstats
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When using jsonify in modules, try several unicode encoding for dumps()James Cammarata2014-02-111-1/+6
| | | | Fixes #4821
* Refactor the synchronize action plugin and add unit testsJames Tanner2014-02-111-8/+41
|
* Open LOG_LOCK file with FD_CLOEXEC to prevent file descriptor leakageJames Cammarata2014-02-101-3/+10
| | | | Fixes #5399
* Merge branch 'issue_4812' into develJames Cammarata2014-02-101-1/+9
|\
| * Use finalize method in jinja2 to convert None values to empty stringsJames Cammarata2014-02-061-1/+9
| | | | | | | | Fixes #4812
* | Specify mode in the makedirs call for fireball/accelerate keysJames Cammarata2014-02-101-1/+1
| |
* | Merge branch 'devel' of https://github.com/xyrix/ansible into xyrix-develJames Cammarata2014-02-102-3/+16
|\ \
| * | fixed thinkoesxyrix2014-02-061-2/+2
| | |
| * | fixed file perms checkingxyrix2014-02-061-1/+7
| | |
| * | made accelerate keys directory configurable, and permissions for the file ↵xyrix2014-02-062-3/+10
| |/ | | | | | | and dir configurable, and gave them a safe default
* | Refining the fix made in #5885.Richard C Isaacson2014-02-081-5/+24
| | | | | | | | It turns out that some of the assumptions in #5885 were slightly off. The previous fix relied on a call to the module to creat a tmp_path. This is insufficent as there are few cases that we need to have the tmp directory before we make the module call. If we don't have a tmp_path before we do a recursive call or when we find a file that does not match the remote md5 hash we need to create a tmp directory. Also we are not more percise when we will need to clean up the remote tmp_path.
* | Revert "Revert "Revert "Add the fork manager code (related to previous ↵Michael DeHaan2014-02-081-134/+0
| | | | | | | | | | | | patch).""" This reverts commit 60d3611b702898e64f4f132d7dc7a6d3691c54e0.
* | Revert "Revert "Revert "This patch makes Ansible reuse fork allocation ↵Michael DeHaan2014-02-081-21/+47
| | | | | | | | | | | | between seperate instantations of the runner API, therefore the overhead of recreating forks""" This reverts commit 73ca1a173c8ede76f19ebce5d6a018fd41e30c68.
* | Revert "While the previous work on the foon class can't be quite recycled, ↵Michael DeHaan2014-02-082-8/+20
| | | | | | | | | | | | it's still a nice abstraction." This reverts commit caab52aee25e8163d0cb8add4df3d49a803f52d1.
* | While the previous work on the foon class can't be quite recycled, it's ↵Michael DeHaan2014-02-082-20/+8
| | | | | | | | still a nice abstraction.
* | Revert "Revert "This patch makes Ansible reuse fork allocation between ↵Michael DeHaan2014-02-081-47/+21
| | | | | | | | | | | | seperate instantations of the runner API, therefore the overhead of recreating forks"" This reverts commit 6685b4989e0763793e7b87170027af40f634ce46.
* | Revert "Revert "Add the fork manager code (related to previous patch).""Michael DeHaan2014-02-081-0/+134
| | | | | | | | This reverts commit c53538dc77b46b50d50d4307d3d41616bd45a341.
* | Revert "This patch makes Ansible reuse fork allocation between seperate ↵Michael DeHaan2014-02-081-21/+47
| | | | | | | | | | | | instantations of the runner API, therefore the overhead of recreating forks" This reverts commit 85d66b9a0c87849c7a83099141e5b2b4731abbe5.
* | Revert "Add the fork manager code (related to previous patch)."Michael DeHaan2014-02-081-134/+0
| | | | | | | | This reverts commit adb1719fe8bd61b2537e84ffdc7b5ffac2f68620.
* | Add the fork manager code (related to previous patch).Michael DeHaan2014-02-071-0/+134
| |
* | This patch makes Ansible reuse fork allocation between seperate ↵Michael DeHaan2014-02-071-47/+21
| | | | | | | | | | | | instantations of the runner API, therefore the overhead of recreating forks between tasks in a playbook is avoided. The fork pool will be regenerated when a second play comes along and needs more hosts.
* | Merge pull request #5885 from risaacson/issue5739_4Richard Isaacson2014-02-072-56/+98
|\ \ | | | | | | Addresses #5739 and cleans up copy.py
| * | Dug into the remaining FIXME and replaced with comments to document the ↵Richard C Isaacson2014-02-051-2/+3
| | | | | | | | | | | | expected behavior.
| * | Addresses #5739 and cleans up copy.pyRichard C Isaacson2014-02-042-56/+97
| | | | | | | | | | | | | | | | | | | | | | | | The copy action_plugin is not easy to read. Part of this commit is taking that file, restructuring it, and adding comments. No functionality changed in how it interacts with the world. The fix for #5739 ends up being the assumption that there is a cleanup 'rm -rf' that happens at the end of the copy loop. This was not the fact before and we made a bunch of tmp directories that we hoped would end up being cleaned up. Now we just use the tmp directory that the runner provides and cleanup inline if it is a single file to be coppied or after the loop if it is a recursive copy. As a part of this we did end up having to change runner to provide a flag so that we could short the inline tmp directory removal. This flag defaults to True so it will not change the behavior of other modules that are being called.
* | | Check mutually_exclusive parameters before applying defaultsJames Tanner2014-02-071-1/+4
| | |
* | | Merge pull request #5880 from willthames/ec2_modules_refactorjctanner2014-02-061-0/+9
|\ \ \ | |_|/ |/| | Create a common EC2 connection argument spec for EC2 modules
| * | Create a common EC2 connection argument spec for EC2 modulesWill Thames2014-02-061-0/+9
| | | | | | | | | | | | | | | | | | | | | Refactor the currently well-factored ec2 modules (i.e. those that already use ec2_connect) to have a common argument spec. The idea is that new modules can use this spec without duplication of code, and that new functionality can be added to the ec2 connection code (e.g. security token argument)
* | | Merge pull request #5771 from bcoca/play_hosts2jctanner2014-02-061-0/+2
|\ \ \ | |/ / |/| | added new play_hosts var
| * | added new play_hosts varBrian Coca2014-01-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | this variable has the 'current host list' to be executed over in the play. Useful when using --limit to not iterate over hosts not included in play in templates or with_items. Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
* | | Properly count newlines appearing at the end of templates after renderingJames Cammarata2014-02-052-2/+18
| | | | | | | | | | | | Fixes #4633
* | | Fix slow sshLuca Berruti2014-02-052-0/+6
| | | | | | | | | | | | | | | | | | We break the read while loop after waiting "the end of the process" and the pipes are empty, otherwise we do another select that waits all the timeout.
* | | Merge pull request #5576 from xyrix/symlink-bug-fixjctanner2014-02-041-1/+1
|\ \ \ | | | | | | | | fixed bug causing symlinks to fail in the host_vars, group_vars etc dire...
| * | | fixed bug causing symlinks to fail in the host_vars, group_vars etc directoriesjay2014-01-101-1/+1
| | | |
* | | | Merge pull request #5662 from RSpiertz/update_playbook_errorjctanner2014-02-041-2/+11
|\ \ \ \ | | | | | | | | | | PlayBook: better error message
| * | | | PlayBook: better error messageRutger Spiertz2014-01-171-2/+11
| | | | | | | | | | | | | | | | | | | | When a PlayBook has missing arguments the error message now shows which ones are missing.
* | | | | Fixes 5870 Template delegate hostname earlier in the processJames Tanner2014-02-041-5/+4
| | | | |
* | | | | Fixes #5818 Default to all known connection information for the delegate hostJames Tanner2014-02-031-30/+84
| |_|_|/ |/| | |
* | | | reword "except Error as e:" into "except Error, e:" to be compatible with ↵Timur Batyrshin2014-02-033-3/+3
| | | | | | | | | | | | | | | | Python 2.5 (#5852)
* | | | Revert "Fix for issue 5739. The copy module does not delete directories it ↵James Cammarata2014-02-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | will only unlinks symlinks." This reverts commit b20dc4f57862885632381c2e4264db7094d13e2f.
* | | | Fix issue with handler notifications being sent out incorrectlyJames Cammarata2014-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This is a partial revert of e8ad36c, which introduced the bug. Fixes #5848
* | | | Merge branch 'issue5739_3' of https://github.com/risaacson/ansible into ↵James Cammarata2014-02-031-2/+0
|\ \ \ \ | | | | | | | | | | | | | | | risaacson-issue5739_3
| * | | | Fix for issue 5739. The copy module does not delete directories it will only ↵Richard C Isaacson2014-02-011-2/+0
| | | | | | | | | | | | | | | | | | | | unlinks symlinks.
* | | | | now with_items also accepts setsBrian Coca2014-02-011-2/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
* | | | | Adding no_log: capability for tasksJames Cammarata2014-01-317-9/+26
|/ / / / | | | | | | | | | | | | Fixes #4088
* | | | Revert "Merge branch 'slow_ssh' of git://github.com/lberruti/ansible into ↵James Tanner2014-01-302-8/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | lberruti-slow_ssh" This reverts commit fe091ec00d2c646cffbc2e916e89c04febb24426, reversing changes made to aed2194b1d249c1ebf19bec0cf0c2e6a599f6156.
* | | | Detect remote_user change in accelerate daemon and allow a restartJames Cammarata2014-01-301-0/+48
| | | | | | | | | | | | | | | | Fixes #5812
* | | | Merge pull request #5527 from sergevanginderachter/basedirdwimjctanner2014-01-302-1/+4
|\ \ \ \ | | | | | | | | | | path_dwim: fix when basedir not set
| * | | | path_dwim: fix when basedir not setSerge van Ginderachter2014-01-082-1/+4
| | | | |
* | | | | Handle implicit localhost when using '-i host,' syntaxJames Cammarata2014-01-301-9/+13
| | | | | | | | | | | | | | | | | | | | Fixes #5820
* | | | | Merge pull request #5806 from sivel/rax-mod-utils-improvementsjctanner2014-01-301-7/+39
|\ \ \ \ \ | | | | | | | | | | | | Rax mod utils improvements