- 23 Apr, 2012 1 commit
-
-
The basic idea is sudo /bin/sh -c 'quoted_command'. We use Paramiko's low-level API to set a timeout, get a pseudo tty, execute sudo and the (shell quoted) command atomically, wait just until sudo is ready to accept the password before sending it down the pipe, and then return the command's stdout and stderr. This should be faster, as there are no unneeded sleeps. There are no permissions issues reading the output. It will raise socket.timeout if the command takes too long. However, this is a per-read timeout, not a total execution timeout, so as long as the command is writing output and you are reading it, it will not time out. Local and non-sudo commands remain unchanged, but should probably adopt a similar approach. Since this is a significant change, it needs a lot of testing. Also, someone smarter than I should double-check the quoting and execution, since it is a security issue.
jkleint committed
-
- 22 Apr, 2012 8 commits
-
-
Implemented optional "default-release" argument for apt module
Michael DeHaan committed -
The value is passed to apt-get's "-t" option. Useful for installing backports, e.g.: ansible webservers -m apt -a "pkg=nginx state=latest default-release=squeeze-backports"
Daniel Néri committed -
Update secontext behavior in file module
Michael DeHaan committed -
Demonstrate what happens when there is no default context in the policy.
Stephen Fromm committed -
Stephen Fromm committed
-
This adjusts behavior of file module such that removal of se* option does not revert the file's selinux context to the default. In order to go back to the default context according to the policy, you can use the context=default option.
Stephen Fromm committed -
Apt module support for installing/removing specific version of package
Michael DeHaan committed -
This uses standard APT syntax, e.g.: ansible webservers -m apt -a "pkg=nginx=1.1.19-1 state=installed"
Daniel Néri committed
-
- 21 Apr, 2012 12 commits
-
-
It works like this: {{ hostvars['127.0.0.1']['ansible_eth0']['ipv4']['address'] }}
Michael DeHaan committed -
Michael DeHaan committed
-
Michael DeHaan committed
-
Michael DeHaan committed
-
Michael DeHaan committed
-
Michael DeHaan committed
-
Michael DeHaan committed
-
Michael DeHaan committed
-
Move setup.py stuff back to top level as "make sdist" was not working, plus, it makes sources cleaner.
Michael DeHaan committed -
Runner() usage to the new inventory model.
Michael DeHaan committed -
Use /var/tmp for root by default to avoid /tmp being mounted noexec, and segregate tmp files for other users into their home directories.
Michael DeHaan committed -
non-sensical, but also if the user wrote a module that took none)
Michael DeHaan committed
-
- 20 Apr, 2012 4 commits
-
-
Michael DeHaan committed
-
Michael DeHaan committed
-
Call os.path.expanduser in modules so things work as expected even when using ./hacking/test-module script
Michael DeHaan committed -
Michael DeHaan committed
-
- 19 Apr, 2012 15 commits
-
-
Michael DeHaan committed
-
Michael DeHaan committed
-
Adds PKGBUILD file for Arch linux
Michael DeHaan committed -
Move manifest
Michael DeHaan committed -
Apt module spelling fixes
Michael DeHaan committed -
Daniel Néri committed
-
Distutils MANIFEST.in, setup.py -> packaging/distutils/ directory.
Tim Bielawa committed -
Adds missing depends (python2-yaml helps...) Adds missing build deps (fakeroot)
Michel Blanc committed -
Adds PKGBUILD file required to build Arch Linux packages
Michel Blanc committed -
Michael DeHaan committed
-
Jeroen Hoekx committed
-
Jeroen Hoekx committed
-
Michael DeHaan committed
-
needed due to moving into packaging/debian?
Michael DeHaan committed
-