Commit Graph

40 Commits (f51f10def5a8bc6c5c189ae9eca25d2d47e4ec1c)

Author SHA1 Message Date
Marco Vito Moscaritolo 448337697f Added documentation to APT module 12 years ago
Michael DeHaan e87697d602 Fix invalid usage or fail_json in apt module 12 years ago
Michael DeHaan 20d90d4c00 Apt module should accept 'absent', and 'present' like the yum module does. 12 years ago
Michael DeHaan 3c2eba57fd Make pep8 tests run against the library directory as well, and associated tweaks (mostly to indentation) in the library
directory.
12 years ago
Michael DeHaan 5ed21bf443 whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added
in 0.6 release)
12 years ago
Michael DeHaan baacde6c74 Add encoding lines to python modules such that they can take unicode options if they are fed them, since the
AnsibleModule stuff no longer base64 encodes for simplicity and speed reasons.
12 years ago
Christoph Seitz f126c77b3b Tweaked error massages. 12 years ago
Christoph Seitz db7b11f152 Some optimizations to previous code. 12 years ago
Christoph Seitz 20e8df1a05 Enable apt module to handle multiply packages (comma separated) 12 years ago
Lorin Hochstein b3353d8f86 Apt module: add update-cache as alias of update_cache
This will ensure users of previous versions of this module don't
have their playbooks break.
12 years ago
Mark Theunissen 12b7b2750c Fixes for apt module 12 years ago
Michael DeHaan 615d180bc8 Merge pull request #723 from skvidal/devel
fix trace-creating error in apt module - also make the default setting a...
12 years ago
Seth Vidal b909b0b603 new patch - adds a 'boolean' function to the module_common class and cleans up
the apt module to use it
12 years ago
Seth Vidal b69ae999ce fix trace-creating error in apt module - also make the default setting actualy work 12 years ago
Lorin Hochstein 481a1916e0 Fix typo in apt error message: update-cache -> update_cache
The apt parameter changed from update-cache to update_cache, but
the error message still mentioned update-cache
12 years ago
Nikhil Singh 8d283f8194 Code review changes
1. Passing the module to the various functions so that they can use module.fail_json and module.exit_json methods inside.
2. Because of point 1, install and remove methods do not return anything. Instead, they use the module functions itself.
3. Move the import statement (for apt and apt_pkg) inside main function so on import error, we can use module.fail_json to print the error.
12 years ago
Nikhil Singh 4d6b3713a7 Adding dict() for json.dumps 12 years ago
Nikhil Singh 096022acb2 Standardizing the apt module 12 years ago
Michael DeHaan 72aefdb609 add noninteractive to debian module per #602 12 years ago
Michael DeHaan 3b035b9fe1 Merge pull request #572 from goozbach/devel
fixes #569 apt module problems on old versions of apt-python
12 years ago
Jeremy Smitherman 501fb5a423 Added cmd modifications to use a force-yes option for apt module 12 years ago
Derek Carter 9a6bcb9481 added filter for future warning 12 years ago
Derek Carter f4414c0511 fixes #569 apt module problems on old versions of apt-python (namely debian 5.0) 12 years ago
Peter Sankauskas 186e438991 Assigning to boolean first 12 years ago
Peter Sankauskas 3965e268ed Getting the apt module to accept and understand a 'install-recommends' parameter which allows running apt with --no-install-recommends 12 years ago
Nathan A. Feger d765ccacd1 Add support for older version of python-apt 12 years ago
Cosmin Luță 0f1d98e46b Added parameter to the apt-get install command to prevent interactive conflict resolution 13 years ago
Stephen Fromm 67ee30f135 Apply logging of arguments to modules (issue #122)
The ohai and facter modules use /usr/bin/logger to log the fact that
they have been invoked.  I added 'import os' to the ping module
so that it could have the same syslog statements as the other modules.
I separated the condensed:
    shlex.split(open(argfile, 'r').read())
into two separate statements similar to the other modules.
13 years ago
Michael DeHaan 31f6cd6408 Because paramiko using a pty can't distinguish stderr and stdout, remove handling that
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.
13 years ago
Daniel Néri 922899f4be Add optional "default-release" argument for apt module
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"
13 years ago
Daniel Néri 187ab3f918 Add apt module support for installing/removing specific version of package
This uses standard APT syntax, e.g.:

    ansible webservers -m apt -a "pkg=nginx=1.1.19-1 state=installed"
13 years ago
Daniel Néri f6d0cc56a0 Fix two misspellings of the apt module's "fail_json" function 13 years ago
Michael DeHaan 9d08eefa9a Also allow the apt module to use package or name as an alias for 'pkg' 13 years ago
Michael DeHaan 8e006f6088 Upgrade apt message if no python-apt to intercept potential user questions. 13 years ago
Matthew Williams f99a7f29e8 apt module bugfix 13 years ago
Michael DeHaan 18852d81f9 have apt module raise an error if apt cannot be imported 13 years ago
Matthew Williams 0ad5fec487 improvements to apt module: state=latest, update-cache=yes|no, purge=yes|no 13 years ago
Matthew Williams bd7710e1b5 trimmed superfluous code from apt module 13 years ago
Matthew Williams b4604b2525 cleaned up apt module style 13 years ago
Matthew Williams 71b503b0c3 preliminary apt module 13 years ago