Jan-Piet Mens
caf003c813
DOCUMENTATION strings
2012-11-21 18:49:30 +01:00
Michael DeHaan
663a8fef3f
chmod -x for all module files in source checkout
2012-11-19 13:47:40 -05:00
Jan-Piet Mens
feab57e270
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
54257a6a4c
Remove "the the"
2012-10-17 19:38:17 -04:00
Michael DeHaan
29d49d415f
fix mentioning of redundant aliases in module docs, remove was removed anyway
2012-10-12 18:14:09 -04:00
Michael DeHaan
f67aa85c3f
Fixing various module related things.
2012-10-02 22:32:17 -04:00
Jan-Piet Mens
e620fed755
Jumbo DOCUMENTATION patch
2012-10-01 09:18:54 +02:00
Marco Vito Moscaritolo
e1c83b0367
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
1193810d46
module DOCUMANTATION for apt, apt_respository cleanup
2012-09-29 01:51:55 +02:00
Marco Vito Moscaritolo
c976238a81
Added documentation to APT module
2012-09-28 22:35:29 +02:00
Michael DeHaan
14c2e8de0c
Fix invalid usage or fail_json in apt module
2012-08-18 19:43:45 -04:00
Michael DeHaan
798c35d83e
Apt module should accept 'absent', and 'present' like the yum module does.
2012-08-18 18:38:10 -04:00
Michael DeHaan
477ca2ed1a
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
faed4b5a33
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
7e9e29011e
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
6baaea90ae
Tweaked error massages.
2012-08-01 18:45:32 +02:00
Christoph Seitz
b973910283
Some optimizations to previous code.
2012-08-01 18:43:39 +02:00
Christoph Seitz
418445d3c5
Enable apt module to handle multiply packages (comma separated)
2012-08-01 18:09:30 +02:00
Lorin Hochstein
9bcc18d17b
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
7a67145ef4
Fixes for apt module
2012-07-30 17:20:43 -05:00
Michael DeHaan
d0f0315c9d
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
21a35bde00
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
c4c53d545a
fix trace-creating error in apt module - also make the default setting actualy work
2012-07-30 13:07:19 -04:00
Lorin Hochstein
a9c2e597ac
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
daf44331c4
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
dd9e09dee6
Adding dict() for json.dumps
2012-07-26 16:24:10 +05:30
Nikhil Singh
4c8d949642
Standardizing the apt module
2012-07-26 16:21:49 +05:30
Michael DeHaan
1a88a3362f
add noninteractive to debian module per #602
2012-07-16 20:18:58 -04:00
Michael DeHaan
626e4cb003
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
a35a0f885e
Added cmd modifications to use a force-yes option for apt module
2012-07-10 22:22:52 -04:00
Derek Carter
f38b9d1ca7
added filter for future warning
2012-07-10 19:50:08 -04:00
Derek Carter
e261d49acc
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
fed1e9870c
Assigning to boolean first
2012-07-06 18:05:15 -07:00
Peter Sankauskas
fced8cf6b0
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
1d553830f2
Add support for older version of python-apt
2012-06-13 13:57:47 -05:00
Cosmin Luță
204bffa21e
Added parameter to the apt-get install command to prevent interactive conflict resolution
2012-05-11 10:54:55 +03:00
Stephen Fromm
aea022b002
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
36e454c52f
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
d5f3760acc
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
Daniel Néri
ec4d5fa287
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"
2012-04-22 02:48:58 +02:00
Daniel Néri
626e8f3543
Fix two misspellings of the apt module's "fail_json" function
2012-04-19 23:40:44 +02:00
Michael DeHaan
8152e44efd
Also allow the apt module to use package or name as an alias for 'pkg'
2012-04-11 20:45:14 -04:00
Michael DeHaan
529a194950
Upgrade apt message if no python-apt to intercept potential user questions.
2012-04-11 20:31:24 -04:00
Matthew Williams
c819f1715e
apt module bugfix
2012-04-03 12:52:08 -07:00
Michael DeHaan
02d5e831ce
have apt module raise an error if apt cannot be imported
2012-04-02 20:54:31 -04:00
Matthew Williams
9fdd7a837e
improvements to apt module: state=latest, update-cache=yes|no, purge=yes|no
2012-04-02 14:42:54 -07:00
Matthew Williams
e2deb94e73
trimmed superfluous code from apt module
2012-03-26 13:53:22 -07:00
Matthew Williams
e85355f054
cleaned up apt module style
2012-03-26 13:48:02 -07:00
Matthew Williams
90ba14d60e
preliminary apt module
2012-03-26 12:49:13 -07:00