Daniel Hokka Zakrisson
ca3f46d7fa
Fix apt module's boolean check to expect converted value
...
Fixes #2218 .
2013-02-27 20:02:34 +01:00
Daniel Hokka Zakrisson
1dadd70d9f
Remove choices=BOOLEANS as it is no longer needed
2013-02-23 22:57:36 +01:00
Daniel Hokka Zakrisson
0150f18a3b
Use argument type checking to convert to boolean
2013-02-23 19:59:52 +01:00
Michael DeHaan
c4522d448f
Merge pull request #2115 from kavink/devel
...
teach apt module to support --check mode
2013-02-20 05:28:21 -08:00
Kavin Kankeshwar
ee9619c5f7
teach apt module to support --check mode
2013-02-19 14:18:52 -08:00
Daniel Hokka Zakrisson
5bb76f5eca
Don't consider packages missing from the cache an error on remove
...
Fixes #2017 .
2013-02-19 23:18:17 +01:00
Blair Zajac
6d5991aa4c
Simplify and correct comparisons with None.
2013-02-16 13:32:48 -05:00
Peter Sankauskas
408d4604d7
The default for install-recommends is actually Yes, not No, as is
...
visible on line 121
2013-02-14 15:27:20 -08:00
Michael DeHaan
aed9841ef8
Merge pull request #1924 from blair/consistly-use-underscores
...
library/apt: consistently use underscores in examples.
2013-01-26 10:31:59 -08:00
Blair Zajac
bfd37a2d44
library/apt: consistently use underscores in examples.
...
To be consistent with the table showing available options, use
underscores in the example tasks, not hyphens, as the table doesn't
list hyphenated versions of option names, so it looks like the
examples could have typos in them.
2013-01-26 10:25:08 -08:00
Stephen Fromm
e4964f42e0
Update modules to use run_command in module_common.py
...
This updates apt, apt_repository, command, cron, easy_install, facter,
fireball, git, group, mount, ohai, pip, service, setup, subversion,
supervisorctl, svr4pkg, user, and yum to take advantage of run_command
in module_common.py.
2013-01-13 08:37:19 -08:00
Jan-Piet Mens
d184f72aa9
DOCUMENTATION strings
2012-11-21 18:49:30 +01:00
Michael DeHaan
6f6559670f
chmod -x for all module files in source checkout
2012-11-19 13:47:40 -05:00
Jan-Piet Mens
d069c57974
Reformat code: examples consistently
...
- added terse syntax to modules.rst
- added description of special variables to template module
2012-10-23 15:14:01 +02:00
Michael DeHaan
2ec9717ea3
Remove "the the"
2012-10-17 19:38:17 -04:00
Michael DeHaan
95f9917df5
fix mentioning of redundant aliases in module docs, remove was removed anyway
2012-10-12 18:14:09 -04:00
Michael DeHaan
2d096ea425
Fixing various module related things.
2012-10-02 22:32:17 -04:00
Jan-Piet Mens
c78a0a4a49
Jumbo DOCUMENTATION patch
2012-10-01 09:18:54 +02:00
Marco Vito Moscaritolo
ea7f457c46
Fixed error on official docs (reported on DOCUMENTATION string). Name param must be pkg and is required.
2012-09-29 18:23:13 +02:00
Jan-Piet Mens
e3a5de2624
module DOCUMANTATION for apt, apt_respository cleanup
2012-09-29 01:51:55 +02:00
Marco Vito Moscaritolo
448337697f
Added documentation to APT module
2012-09-28 22:35:29 +02:00
Michael DeHaan
e87697d602
Fix invalid usage or fail_json in apt module
2012-08-18 19:43:45 -04:00
Michael DeHaan
20d90d4c00
Apt module should accept 'absent', and 'present' like the yum module does.
2012-08-18 18:38:10 -04:00
Michael DeHaan
3c2eba57fd
Make pep8 tests run against the library directory as well, and associated tweaks (mostly to indentation) in the library
...
directory.
2012-08-11 12:35:58 -04:00
Michael DeHaan
5ed21bf443
whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added
...
in 0.6 release)
2012-08-06 20:07:02 -04:00
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.
2012-08-02 21:29:10 -04:00
Christoph Seitz
f126c77b3b
Tweaked error massages.
2012-08-01 18:45:32 +02:00
Christoph Seitz
db7b11f152
Some optimizations to previous code.
2012-08-01 18:43:39 +02:00
Christoph Seitz
20e8df1a05
Enable apt module to handle multiply packages (comma separated)
2012-08-01 18:09:30 +02:00
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.
2012-07-31 09:56:36 -04:00
Mark Theunissen
12b7b2750c
Fixes for apt module
2012-07-30 17:20:43 -05:00
Michael DeHaan
615d180bc8
Merge pull request #723 from skvidal/devel
...
fix trace-creating error in apt module - also make the default setting a...
2012-07-30 10:45:42 -07:00
Seth Vidal
b909b0b603
new patch - adds a 'boolean' function to the module_common class and cleans up
...
the apt module to use it
2012-07-30 13:41:42 -04:00
Seth Vidal
b69ae999ce
fix trace-creating error in apt module - also make the default setting actualy work
2012-07-30 13:07:19 -04:00
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
2012-07-29 12:29:00 -04:00
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.
2012-07-26 17:29:15 +05:30
Nikhil Singh
4d6b3713a7
Adding dict() for json.dumps
2012-07-26 16:24:10 +05:30
Nikhil Singh
096022acb2
Standardizing the apt module
2012-07-26 16:21:49 +05:30
Michael DeHaan
72aefdb609
add noninteractive to debian module per #602
2012-07-16 20:18:58 -04:00
Michael DeHaan
3b035b9fe1
Merge pull request #572 from goozbach/devel
...
fixes #569 apt module problems on old versions of apt-python
2012-07-11 10:53:29 -07:00
Jeremy Smitherman
501fb5a423
Added cmd modifications to use a force-yes option for apt module
2012-07-10 22:22:52 -04:00
Derek Carter
9a6bcb9481
added filter for future warning
2012-07-10 19:50:08 -04:00
Derek Carter
f4414c0511
fixes #569 apt module problems on old versions of apt-python (namely debian 5.0)
2012-07-10 19:28:14 -04:00
Peter Sankauskas
186e438991
Assigning to boolean first
2012-07-06 18:05:15 -07:00
Peter Sankauskas
3965e268ed
Getting the apt module to accept and understand a 'install-recommends' parameter which allows running apt with --no-install-recommends
2012-07-06 12:12:04 -07:00
Nathan A. Feger
d765ccacd1
Add support for older version of python-apt
2012-06-13 13:57:47 -05:00
Cosmin Luță
0f1d98e46b
Added parameter to the apt-get install command to prevent interactive conflict resolution
2012-05-11 10:54:55 +03:00
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.
2012-05-09 15:19:20 -07:00
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.
2012-04-27 01:25:38 -04:00
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"
2012-04-23 00:17:07 +02:00