James Cammarata
67899d95fd
Merge pull request #8292 from jimi-c/issue_7863_deb_with_items
...
Allow deb package installation via with_items
10 years ago
Sam Hanes
ed1aef3fa5
Restore #6484 reverted by c751168
.
11 years ago
James Cammarata
46100f5bc4
Merge branch 'upgrade-release' of https://github.com/amenonsen/ansible into amenonsen-upgrade-release
11 years ago
James Cammarata
590a8bf2e8
Allow deb package installation via with_items
...
Fixes #7863
11 years ago
yuyak
54fdd5416b
Fix typo in apt module documentation
11 years ago
Jean-Frédéric
ea78ad9906
Fix documentation of deb option in apt module
...
The apt module may install a .deb package on the remote machine, not on the local.
Fix the misleading documentation.
11 years ago
Abhijit Menon-Sen
9eebdd1edb
Allow '-t ' to be passed to apt: upgrade
11 years ago
Michael DeHaan
594e5dcdd7
In apt module show 'name' vs pkg to standardize with the rest of the modules. 'pkg' is an alias for name.
11 years ago
James Cammarata
2725538515
Merge pull request #7095 from radeksimko/pokemon-exc-fix
...
Prevent catching unrelated exceptions
11 years ago
Radek Simko
08befa9c86
Prevention for catching unrelated exceptions added
11 years ago
Radek Simko
7d47f46807
Explicit check of return code for autoinstallation of python-apt added
...
This will allow easier debugging through more meaningful error message.
11 years ago
Drew Blas
2755a8296e
Update apt:deb with correct version
...
The docs site says this option is available in 1.5, but it is not.
#5910 https://github.com/ansible/ansible/pull/5910 added the deb option. The PR was generated two months ago (before 1.5) but was not included until after 1.5 was released. This fixes the docs.
11 years ago
James Tanner
f7609c8bbe
Fix merge conflicts
11 years ago
Michael DeHaan
72696fec03
Merge branch 't-apt-list' of git://github.com/Elemecca/ansible into devel
11 years ago
Colin Mattson
3b710005ad
Clarify documentation for apt pkg, state, install_recommends
11 years ago
Jonathan Dray
63e2d9b3f7
fix: bug in apt when python-apt is not present apt-get was not called due to unsafe call
11 years ago
Sam Hanes
3776348acb
Add support for YAML lists to apt module.
11 years ago
Patrick Gerken
0c70cc123e
Properly catch import errors in apt
...
When one accidentally tries to run this module as a user, he gets the error message that python-apt must be installed, no matter what. Because importing apt will trigger an exception as a regular user. Explicitly catching the ImportError will let the exception bubble. The exception clearly says Permission denied somewhere, and the user has a better idea, what he must fix.
11 years ago
Michael DeHaan
11146a52f1
Fix other reference to APT_ENV_VARS.
11 years ago
Michael DeHaan
4c7ff55102
Update apt module so that environment variables are set correctly since not going through shell. Very sorry folks, it will be addressed.
11 years ago
James Cammarata
4ab996621d
Merge branch '5853-python-2.5-apt_repository-fix' of https://github.com/timurbatyrshin/ansible into timurbatyrshin-5853-python-2.5-apt_repository-fix
11 years ago
Lorin Hochstein
99ff70e15f
apt module: Add support for installing .deb packages
...
Support installing .deb packages from the local filesystem.
apt: deb=/tmp/mypackage.deb
11 years ago
Timur Batyrshin
2ec777137e
further compatibility with older versions of python-apt ( #5853 )
11 years ago
Rene Moser
3b1c9d6dd6
apt: fixed pkg=<name>=<version> fails if package is not yet installed.
...
Reported and patch provided by https://github.com/msolo . Closes GH-5625.
11 years ago
lichesser
0f0edf6914
Remove debugging code
...
I guess this is left over from testing
11 years ago
James Tanner
c74b99ca63
Fixes #5369 Do not pass --force-yes to aptitude
11 years ago
jctanner
f9121ba27c
Merge pull request #4872 from timurbatyrshin/4869-old-python-apt-fix
...
#4869 compatibility with older versions of apt
11 years ago
Rene Moser
0313c517e9
apt: update index before trying to autoinstall python-apt
11 years ago
jctanner
59993ec76a
Merge pull request #5181 from mvo5/bugfix/apt-fnmatch-remove
...
add fnmatch() support for apt remove too (just like install)
11 years ago
Michael Scherer
93105ea590
Fix apt module to be able to install package by giving just a provides and not the full name
...
The apt module check if a packag eis valid by loking in the cache, checking only for
full name, while it should also check that the name is not just provided.
Fix https://github.com/ansible/ansible/issues/5177
11 years ago
Michael Vogt
824624fd3b
add fnmatch() support for apt remove too (just like install)
11 years ago
James Tanner
4f9aadcc07
Addresses #5023 Fix import comments
11 years ago
James Tanner
38edad70ac
Fixes #5023 Convert all modules to use new snippet import pattern
11 years ago
Michael DeHaan
4c35b7f380
There's a cleaner way to do this, commit to module formatter pending.
...
Revert "No longer need to reference 'version_added' in docs for these, as this was quite a while ago."
This reverts commit ff0a41d446
.
11 years ago
Michael DeHaan
9e4d71203d
No longer need to reference 'version_added' in docs for these, as this was quite a while ago.
11 years ago
James Tanner
db163d51ba
Fixes #4891 Catch unicodedecode errors from python-apt
11 years ago
James Tanner
548a48b2f6
Address #4285 remove redundant stderr output in apt module
11 years ago
jctanner
99c0e183ae
Merge pull request #4285 from blair/apt-module-register-stdout-stderr
...
apt: pass child process stdout and stdout to m.fail_json() and m.exit_js...
11 years ago
jctanner
f58bbd5913
Merge pull request #4617 from resmo/feature/python-apt
...
apt: autoinstall python-apt if apt or apt_pkg is not available
11 years ago
James Tanner
b82f5ef05c
Merge pull request #4286 from blair/ansible
...
apt: do not consider not-removed and not-upgraded packages as changes.
11 years ago
Timur Batyrshin
7e709ce714
#4869 compatibility with older versions of apt
11 years ago
Yegor Minin
0b51476c0a
apt: allow specifying dpkg options
...
This will allow specifying dpkg options as a string passed over to apt
command. dpkg_options expects a comma-separated string of options to be
passed as dpkg options which will be further expanded. For example
dpkg_options='force-confdef,force-confold' will end up as
-o \"Dpkg::Options::=--force-confold\" when passed to apt
Example usage would be:
-m apt -u ubuntu -s \
-a "upgrade=dist update_cache=yes dpkg_options='force-confold'"
or
apt: upgrade=dist update_cache=yes dpkg_options='force-confold'
11 years ago
Rene Moser
c2c0729f6e
apt: autoinstall python-apt if not available
11 years ago
Michael DeHaan
64349632c7
For values that are booleans in the module doc, the value in the doc section should be a boolean or truthiness
...
is engaged in the documentation formatting. This fixes the update_cache default in the docs to the proper
value of "no"
11 years ago
Michael DeHaan
85d0ea0d5f
Use explicit boolean defaults in apt module to make the code more clear.
11 years ago
Blair Zajac
a5cdf49184
apt: do not consider not-removed and not-upgraded packages as changes.
...
If one pins a package and does a 'apt-get dist-upgrade' then the
output looks like:
# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
cassandra
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
The check for any changes made should only be on the 'upgraded' and
'newly installed' values and not include the 'to remove' and 'not
upgraded' values.
11 years ago
Blair Zajac
4a6c68e98a
apt: pass child process stdout and stdout to m.fail_json() and m.exit_json().
...
Without this, this fails:
- name: apt-get dist-upgrade
action: apt upgrade=dist
register: apt_get_contents
- name: apt-get clean
action: command apt-get clean
when: apt_get_contents.stdout.find("0 upgraded") == -1
TASK: [apt-get clean] *********************************************************
fatal: [192.168.2.2] => error while evaluating conditional: {% if apt_get_contents.stdout.find("0 upgraded") == -1 %} True {% else %} False {% endif %}
FATAL: all hosts have already failed -- aborting
11 years ago
James Cammarata
a6e339fc36
Merge pull request #4138 from resmo/fix/redundant-fail-json
...
apt: fixed duplicate fail_json
11 years ago
Rene Moser
8c7c0833c2
apt: fixed duplicate fail_json
11 years ago
James Cammarata
c48fc23d75
Use low-level package objects in the apt module to check installed state
...
Packages which are half-installed are not adequately represented by
the .is_installed field of the apt.package.Package object. By using the
lower-level apt_pkg.Package object (which provides the .current_state
field), we can check for a partially-installed state more accurately.
Fixes #3421
11 years ago