Commit Graph

744 Commits (8a3e2ec20f9ff636fd3f4fd5517540cbd0a55d90)

Author SHA1 Message Date
René Moser db564c9b0f Merge pull request #3283 from mscherer/fix_argument_rhn_register
Fix argument rhn register
9 years ago
René Moser 7080dd057b Merge pull request #3288 from jhutar/fix-sslcacert-for-rhn_register
Add missing parameters so these options are usable
9 years ago
Hugh Saunders e9fd7befb7 Retry apt cache updates 9 years ago
René Moser d4285b5f21 Merge pull request #2613 from Jmainguy/apt_download_deb
Add ability to download deb from url
9 years ago
Strahinja Kustudić c8222bc8db Yum module always downloads remote rpms. fixes #1452 9 years ago
Rene Moser e760b45867 apt: doc: fix missing version_added
see #2023
9 years ago
Chris Lamb f4bc59595c os/apt.py: Add support for passing --allow-unauthenticated
This is useful for packages that bootstrap their own apt-key setup - only
the initial installation will require overriding. Notable examples are the
Dropbox and Google Chrome packages.

(Setting force=yes is far too strong: I only want to bypass
authentication!)

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
9 years ago
Jan Hutar 3d13a353e0 Add missing parameters so these options are usable 9 years ago
Michael Scherer 2b489e3257 Fix type of the rhn_register module
Password and activationkey should be tagged as no_log, as they
are supposed to be secret.
sslcacert is a path, so should be tagged as such.
9 years ago
Toshio Kuratomi 22a9a15a5b Fix indent in documentation 9 years ago
James Cammarata 4be29d6e84 Merge pull request #3072 from rsommer/devel
add 'only_upgrade' switch to apt module
9 years ago
Raphaël Dubigny 98a4310579 typo in pip module 9 years ago
Roland Sommer b118c5ef11 honour 'only_upgrade' flag for 'build_dep' case in 'apt' module 9 years ago
toshihisa 530643a216 One more bug yum non English locales
d7fac82f97
9 years ago
Roland Sommer bc9fb43ac0 add 'only_upgrade' switch to apt module 9 years ago
Matt Martz d112599fd5 Set version_added to 2.1 for autoremove. Fixes #3200 9 years ago
Matt Davis 7d2fd4e944 Merge pull request #2926 from mattclay/apt-unsafe
Split shell command to avoid use_unsafe_shell.
9 years ago
Matt Martz 45745424f7 pip module should call exit_json for absent as well (indentation error) 9 years ago
Tobias Wolf c5be97ca5c Add diff support to apt_repository module
The returned list of diffs aims to simulate how a file system diff would
look before and after writing the sources list files.

![screenshot](http://i.imgur.com/dH6QXtY.png)

n.b. Ternary conditional  is due to failing integration test for
python 2.4
9 years ago
Brian Coca e4c4f02472 Merge pull request #3074 from stefano-m/devel
Make 'executable' and 'virtualenv' mutually exclusive
9 years ago
Brian Coca 2a03fc2b99 Merge pull request #2997 from callipeo/issue/2996
Add support for both keyserver and keyring in apt_key
9 years ago
Brian Coca e9130cd4d1 Merge pull request #2766 from joelthompson/feature/pip_umask
Add umask option to pip module
9 years ago
Stefano Mazzucco 24c6b269c9 'executable' and 'virtualenv' mutually exclusive
fixes https://github.com/ansible/ansible/issues/14415
9 years ago
Brian Coca 38d6c1cd36 expanded info on fail on check + missing apt-python
it now explains that apt module will auto install
9 years ago
Matt Clay d33e033eba Do not install python-apt in check mode. 9 years ago
callipeo 27df98b6fb Add support for both keyserver and keyring in apt_key
Fixes Issue #2996
9 years ago
Toshio Kuratomi 1df8ebf0c3 use new method of setting locale and other environment variables
The old method left settings in the environment.  The new method takes
care of clearing them after use.  In this module, the old method was
also setting the environment too late to affect all the command line
tools which lead to a bug.

Fixes https://github.com/ansible/ansible/issues/14264
9 years ago
Charles Paul d7a0a3b7e3 adding autoremove to apt 9 years ago
Toshio Kuratomi 63fda10853 Merge pull request #1458 from Tahvok/patch-1
Explain that state=present should be used with yum and url
9 years ago
Toshio Kuratomi a5667e51ad Merge pull request #2660 from mscherer/fix_rhn_register
Do not use a shell construct for rhnreg_ks
9 years ago
Matt Clay e56d668ade Split shell command to avoid use_unsafe_shell.
This mirrors a nearly identical change made to apt_repository.py.

Also removes the use of apt-get --force-yes as it can be dangerous
and should not be necessary (apt_repository.py does not use it).

Repeating the explanation from the apt_respository change below:

Since use_unsafe_shell is suspicious from a security point
of view (or it wouldn't be unsafe), the less we have, the less
code we have to thoroughly inspect for a security audit.

In this case, the '&&' can be replaced by doing 2 calls to run_command.
9 years ago
Matt Clay 7a82f2c86d Show error if python-apt is absent in check mode.
Previously this would fail with an exception which
did not clearly explain the reason for the failure.
9 years ago
Michael Scherer c01cc5f6e4 Do not use a shell construct for rhnreg_ks
Since there is no shell escape of the password parameter, a password with
a single quote (or even worst, a single quote and a pipe) could have
unattended consequences. Also, the less we use use_unsafe_shell=True, the
better.
9 years ago
Brian Coca 9e5737d776 Merge pull request #2661 from mscherer/remove_unsafe_shell_apt_repos
Split a shell snippet in 2 to avoid using use_unsafe_shell=True
9 years ago
Toshio Kuratomi d7fac82f97 Fix for yum's use of rpm with non English locales
Depends upon https://github.com/ansible/ansible/pull/14025

Fixes https://github.com/ansible/ansible/issues/13996
Fixes https://github.com/ansible/ansible/issues/13975
9 years ago
Brian Coca 61379184d4 Merge pull request #2794 from evverx/fix-apt-key-del-long-id
apt-key: convert ids to the 'short' format
9 years ago
Matt Davis 51056bac9d Merge pull request #2696 from mattclay/apt-repository-filename
Added filename option to apt_repository module.
9 years ago
Joel Thompson 4b46200477 Add umask option to pip module
On systems with restrictive umasks, the pip module won't allow you to
install pip packages that are usable by everyone on the system. This
commit adds a umask option to optionally override the umask on a
per-package basis.
9 years ago
Evgeny Vereshchagin d441cb176c apt-key: convert ids to the 'short' format
Fixes:
$ ansible all -m apt_key -a 'state=present id=7A82B743B9B8E46F12C733FA4759FA960E27C0A6 keyserver=hkp://keyserver.ubuntu.com:80' --sudo
127.0.0.1 | SUCCESS => {
    "changed": true
}

$ ansible all -m apt_key -a 'state=absent id=7A82B743B9B8E46F12C733FA4759FA960E27C0A6' --sudo
127.0.0.1 | SUCCESS => {
    "changed": false
}

$ apt-key export 7A82B743B9B8E46F12C733FA4759FA960E27C0A6
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
...

See https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1481871
9 years ago
Brian Coca 4d2cdfe324 made note about choice availability in ansible ver 9 years ago
Brian Coca 8e066cd124 Merge pull request #2600 from cinerama70/pip-force-reinstall
Add support for pip force-reinstall
9 years ago
Brian Coca 2fbfc0740f corrected version added 9 years ago
Brian Coca dc517ecea6 Merge pull request #2457 from axelspringer/rhn_register-sslcacert-systemorgid
rhn_register: add sslcacert and systemorgid options
9 years ago
Arata Notsu 14950824c3 apt: export env vars before run dpkg
Without this change, some trouble may occur when "deb" parameter
is used as env vars controlling dpkg are not set. For example,
installing a package that requires user input will never end since
DEBIAN_FRONTEND=noninteractive is not set.

So export env vars in APT_ENV_VARS before run dpkg, like in cases
using apt-get/aptitude.
9 years ago
Brian Coca c557f2ae5b Merge pull request #2723 from mscherer/fix_427
Add more precise documentation on the requirements parameter
9 years ago
Barnaby Court d4c5360380 add no_log to the password parameter 9 years ago
Martin Matuska d3740505ac rhn_register: add sslcacert and systemorgid options 9 years ago
Michael Scherer 860635d38c Add more precise documentation on the requirements parameter
Fix #427
9 years ago
Toshio Kuratomi c75c000369 Merge pull request #2403 from dvarrazzo/pip-vcs-changed
Fix status after pip installations with VCS urls
9 years ago
Matt Clay 9f622015f1 Added filename option to apt_repository module. 9 years ago