- 27 Apr, 2012 13 commits
-
-
Michael DeHaan committed
-
treated -D as a way to show stderr, and make sure modules don't include things on stderr. Update docs and test module script to come into line.
Michael DeHaan committed -
This reverts commit 40f60353.
Michael DeHaan committed -
Revert "Revert "Actually wait for password prompt in remote sudo execution. Totally breaks stderr debugging" This reverts commit e1611403. Conflicts: lib/ansible/connection.py
Michael DeHaan committed -
This reverts commit 44486223.
Michael DeHaan committed -
Revert "Actually wait for password prompt in remote sudo execution. Totally breaks stderr debugging and various modules. This reverts commit 6341a954.
Michael DeHaan committed -
Michael DeHaan committed
-
Michael DeHaan committed
-
Michael DeHaan committed
-
Michael DeHaan committed
-
Some tweaks to first_available_file mostly in terms of error handling and not trying src= to be present as it is not used here.
Michael DeHaan committed -
make it useful from /usr/bin/ansible and the API. Also some minor style fixes.
Michael DeHaan committed
-
- 28 Apr, 2012 1 commit
-
-
first_if_available and yum fixes
Michael DeHaan committed
-
- 27 Apr, 2012 7 commits
-
-
Seth Vidal committed
-
Seth Vidal committed
-
add first_available_file look up to _execute_template and _execute_copy to runner. add this data to playbook handler so it can be included into module_vars
Seth Vidal committed -
When running the service module via sudo, `$PATH` didn't contain `/sbin`, so the service binary couldn't be found. This just runs `/sbin/service` directly. Output is spewed to stderr on error. Added `list=status` to include the output of `service <cmd> status`.
John Kleint committed -
Michael DeHaan committed
-
[devel] ansible-playbook hangs if not passed --extra-vars
Michael DeHaan committed -
Reed Murphy committed
-
- 26 Apr, 2012 15 commits
-
-
ansible-playbook release-my-app.yml --extra-vars="version=123" And make $version available in the playbook without re-editing the file
Michael DeHaan committed -
Return the octal mode of a file instead of decimal.
Michael DeHaan committed -
Service module crashes if args has no "=".
Michael DeHaan committed -
Selinux -- more fun
Michael DeHaan committed -
Use socket.getfqdn() to fix issue #243
Michael DeHaan committed -
Michael DeHaan committed
-
When running on lots of hosts with a large login banner on a slow network, it was still possible that the first recv() didn't to pull in the sudo password prompt, and sudo would fail intermittently. This patch tells sudo to use a specific, randomly-generated prompt and then reads until it finds that prompt (or times out). Only then is the password sent. It also catches `socket.timeout` and thunks it to a more useful `AnsbileError` with the output of sudo so if something goes wrong you can see what's up.
jkleint committed -
Stephen Fromm committed
-
This adds selinux_mls_enabled() and selinux_enabled() to detect a) whether selinux is MLS aware (ie supports selevel) and b) whether selinux is enabled. If selinux is not enabled, all selinux operations are punted on -- same as if python's selinux module were not available. In set_context_if_different(), I now iterate over the current context instead of the context argument. Even if the system supports MLS, it may not return the selevel from selinux.lgetfilecon(). Lastly, this drops selinux_has_selevel() in lieu of the current approach.
Stephen Fromm committed -
jkleint committed
-
Jeroen Hoekx committed
-
Do not override the value of user and hostname.
Michael DeHaan committed -
Do not override the value of user and hostname. Get port and identityfile only.
cocoy committed -
Michael DeHaan committed
-
Michael DeHaan committed
-
- 25 Apr, 2012 4 commits
-
-
Fix issue #227
Michael DeHaan committed -
Unify normal and sudo remote exeuction.
Michael DeHaan committed -
Commit SHA: 87b1cf45 that put temp files in `$HOME/.ansible` instead of `/home/<user>/.ansible` was producing a directory literally called `$HOME` (no expansion) with non-sudo remote execution. I'll take the blame for this one, as `ParamikoConnection.exec_command()` was not using the shell for non-sudo commands. This does sudo and non-sudo execution the same way, using the shell, so environment variables should get expanded.
jkleint committed -
Older versions of selinux, such as that deployed on rhel5, only return a context of user:role:type instead of user:role:type:level. This detects whether the tuple has three elements (old-style) or four. If the old-style, it keeps the secontext list at three elements.
Stephen Fromm committed
-