- 27 Apr, 2012 2 commits
-
-
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 8 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 -
fix for issue #230 - handle template taking 3 args
Michael DeHaan committed -
Seth Vidal committed
-
Bugfix for issue #229
Michael DeHaan committed -
cocoy committed
-
- 24 Apr, 2012 7 commits
-
-
Use the $HOME env var instead of hard coding /home/<username>
Michael DeHaan committed -
Support YAML list of hosts in playbook.
Michael DeHaan committed -
Reading the docs, I was a bit confused as to how to specify multiple hosts/groups in a playbook. Being YAML, I assumed a normal YAML list would work: --- - hosts: [host1, host2] But this crashes when inventory._matches() assumes hosts is a string. This patch just checks if hosts is a list, and turns it into a string joined by ';'.
jkleint committed -
runner._chain_file_module() calls .get() on error string
Michael DeHaan committed -
Chris Read committed
-
runner._return_from_module() normally returns a list (?) of `[str,bool,dict,str]`, but on error it returns `[str,bool,str,str]`. runner._chain_file_module() then tries to call .get() on the third item (`data2`), which fails when it's a string. This patch only accesses `data2` if the return value was `ok`. It might be better to return consistent types in both cases, but I'm not sure where/how else the return value is used.
jkleint committed -
handle issues when the hostlist is inadvertently set executable
Michael DeHaan committed
-