Commit Graph

81 Commits (e319375bdea06e92c925bc89d0ea9682ab82d0cc)

Author SHA1 Message Date
Serge van Ginderachter 26646149a9 enforce no enteractiveness installing pkg with apt
use the same env vars and dpkg options as for the upgrade function
also link check mode to --simulate option when installing a pkg

fixes #2763
12 years ago
Michael DeHaan bf9ca7fc4d Fixup apt module refactoring from previous patch. 12 years ago
Serge van Ginderachter 3a654d4497 package and upgrade are not mutually exclusive, but when both were set, upgrade didn't happen 12 years ago
Serge van Ginderachter e1ea9b7f87 add default=yes in upgrade argument spec 12 years ago
Serge van Ginderachter 04547eb064 apt module: part rewrite of the upgrade logic, consistently checking
the executable paths, adding 'safe' as an alias to yes, and adding
'full' to allow aptitude full-upgrade as an alternative to apt-get
dist-upgrade
12 years ago
Gareth Rees c0d39fbde1 Add separate step update_cache example 12 years ago
Lorin Hochstein 3eb859a01c upgrade should obey check mode 12 years ago
Lorin Hochstein 75a9687a2a 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
12 years ago
lwade e2c138f2ba Changed python interpreter to be consistent in these modules as compared to all others. 12 years ago
Brian Coca 2a47bb5b7a now actually import exception to be usable 12 years ago
Brian Coca d3f6071d66 now catches lock exceptoins on apt and returns friendly message instead of
traceback

Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
12 years ago
Daniel Hokka Zakrisson f15bb4393e Make apt upgrade=dist work and make its argument handling more idiomatic
Fixes #2287.
12 years ago
Michael DeHaan acb2ab73c2 Type checking on library/apt means the upgrade parameter is now properly True/False 12 years ago
Michael DeHaan aee5bb12e9 Fix apt module documentation formatting. 12 years ago
Michael DeHaan 51806351fa Merge branch 'new_branch_for_apt_squashed' of git://github.com/RaymiiOrg/ansible-1 into devel
Conflicts:
	library/apt
12 years ago
Remy van Elst 5f46bbc713 apt update 12 years ago
Remy van Elst 722357c254 apt upgrade support 12 years ago
Daniel Hokka Zakrisson ca3f46d7fa Fix apt module's boolean check to expect converted value
Fixes #2218.
12 years ago
Daniel Hokka Zakrisson 1dadd70d9f Remove choices=BOOLEANS as it is no longer needed 12 years ago
Daniel Hokka Zakrisson 0150f18a3b Use argument type checking to convert to boolean 12 years ago
Michael DeHaan c4522d448f Merge pull request #2115 from kavink/devel
teach apt module to support --check mode
12 years ago
Kavin Kankeshwar ee9619c5f7 teach apt module to support --check mode 12 years ago
Daniel Hokka Zakrisson 5bb76f5eca Don't consider packages missing from the cache an error on remove
Fixes #2017.
12 years ago
Blair Zajac 6d5991aa4c Simplify and correct comparisons with None. 12 years ago
Peter Sankauskas 408d4604d7 The default for install-recommends is actually Yes, not No, as is
visible on line 121
12 years ago
Remy d4a928e302 Added DPKG options which lardcanoe suggested 12 years ago
Remy fde27ae26e Added check so that upgrade cannot be used with other options. 12 years ago
Remy f1dffe9bc6 Added version flag (1.1) to updated
apt module.
12 years ago
Remy 03254282c7 Added apt-get upgrade and dist-upgrade option 12 years ago
Michael DeHaan aed9841ef8 Merge pull request #1924 from blair/consistly-use-underscores
library/apt: consistently use underscores in examples.
12 years ago
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.
12 years ago
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.
12 years ago
Jan-Piet Mens d184f72aa9 DOCUMENTATION strings 12 years ago
Michael DeHaan 6f6559670f chmod -x for all module files in source checkout 12 years ago
Jan-Piet Mens d069c57974 Reformat code: examples consistently
- added terse syntax to modules.rst
 - added description of special variables to template module
12 years ago
Michael DeHaan 2ec9717ea3 Remove "the the" 12 years ago
Michael DeHaan 95f9917df5 fix mentioning of redundant aliases in module docs, remove was removed anyway 12 years ago
Michael DeHaan 2d096ea425 Fixing various module related things. 12 years ago
Jan-Piet Mens c78a0a4a49 Jumbo DOCUMENTATION patch 12 years ago
Marco Vito Moscaritolo ea7f457c46 Fixed error on official docs (reported on DOCUMENTATION string). Name param must be pkg and is required. 12 years ago
Jan-Piet Mens e3a5de2624 module DOCUMANTATION for apt, apt_respository cleanup 12 years ago
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