Commit graph

76 commits

Author SHA1 Message Date
Gareth Rees
c45b54c1cf Add separate step update_cache example 2013-04-08 18:20:23 +02:00
Lorin Hochstein
9289db18b4 upgrade should obey check mode 2013-03-31 21:48:08 -04:00
Lorin Hochstein
614642f8e9 Use aptitude safe-upgrade for apt upgrade=yes
Use aptitude safe-upgrade instead of apt-get upgrade to implement
apt: upgrade=yes. Using aptitude ensures that missing dependencies
will also be installed.

Fixes #2540
2013-03-31 21:41:58 -04:00
lwade
9dda148679 Changed python interpreter to be consistent in these modules as compared to all others. 2013-03-19 16:07:36 +00:00
Brian Coca
4f9c61d673 now actually import exception to be usable 2013-03-13 18:21:16 -04:00
Brian Coca
4a2276bb4b now catches lock exceptoins on apt and returns friendly message instead of
traceback

Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
2013-03-13 18:11:23 -04:00
Daniel Hokka Zakrisson
3d49f74df6 Make apt upgrade=dist work and make its argument handling more idiomatic
Fixes #2287.
2013-03-05 23:46:34 +01:00
Michael DeHaan
6ecdef6b88 Type checking on library/apt means the upgrade parameter is now properly True/False 2013-03-01 23:34:27 -05:00
Michael DeHaan
ff58623f8b Fix apt module documentation formatting. 2013-03-01 17:38:14 -05:00
Michael DeHaan
7749b34546 Merge branch 'new_branch_for_apt_squashed' of git://github.com/RaymiiOrg/ansible-1 into devel
Conflicts:
	library/apt
2013-03-01 17:13:42 -05:00
Remy van Elst
f094d65fdd apt update 2013-02-28 20:50:07 +01:00
Remy van Elst
5289fa72b6 apt upgrade support 2013-02-28 20:47:31 +01:00
Daniel Hokka Zakrisson
1fe744d2af Fix apt module's boolean check to expect converted value
Fixes #2218.
2013-02-27 20:02:34 +01:00
Daniel Hokka Zakrisson
578ec127fb Remove choices=BOOLEANS as it is no longer needed 2013-02-23 22:57:36 +01:00
Daniel Hokka Zakrisson
df798d0688 Use argument type checking to convert to boolean 2013-02-23 19:59:52 +01:00
Michael DeHaan
ae599d8a61 Merge pull request #2115 from kavink/devel
teach apt module to support --check mode
2013-02-20 05:28:21 -08:00
Kavin Kankeshwar
53924b4599 teach apt module to support --check mode 2013-02-19 14:18:52 -08:00
Daniel Hokka Zakrisson
3f2fd22ed4 Don't consider packages missing from the cache an error on remove
Fixes #2017.
2013-02-19 23:18:17 +01:00
Blair Zajac
fa8e653011 Simplify and correct comparisons with None. 2013-02-16 13:32:48 -05:00
Peter Sankauskas
6fd0316fa6 The default for install-recommends is actually Yes, not No, as is
visible on line 121
2013-02-14 15:27:20 -08:00
Remy
ad7807fce4 Added DPKG options which lardcanoe suggested 2013-02-07 08:00:02 +01:00
Remy
26310f411c Added check so that upgrade cannot be used with other options. 2013-02-04 08:44:35 +01:00
Remy
fd59a03193 Added version flag (1.1) to updated
apt module.
2013-02-03 19:14:37 +01:00
Remy
31db1e31d4 Added apt-get upgrade and dist-upgrade option 2013-02-03 10:46:23 +01:00
Michael DeHaan
12403abc2c 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
811c711328 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
3fb21a5281 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
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