Commit Graph

18 Commits (282221e5a06c553f2a8bb2877f2dbbce10598604)

Author SHA1 Message Date
Toshio Kuratomi 36be779888 Remove duplicate documentation fields 9 years ago
Guido Günther 11e8a17684 zypper: Add returncode to result
This will be used in integration tssts and makes the whole thing
more similar to the yum module.
9 years ago
Robin Roth 9f02fbe072 better cope with rpm not returning package name
if the rpm query is missing a package name (or giving some error): fail soft

before the patch: the module fails because the installed_state dict is missing the package name

after the patch: the missing package is assumed to not be in the correct state and is installed/removed with zypper
9 years ago
Brian Coca 3925b64d17 Merge pull request #371 from M0ses/devel
fix errorhandling in zypper.py module
9 years ago
Alexander Gubin 5eec20df56 zypper: Add local/remote rpm installation
Add remote rpm example
9 years ago
Greg DeKoenigsberg 004dedba8a Changes to author formatting, remove emails 10 years ago
Brian Coca 08445418aa more string corrections 10 years ago
Greg DeKoenigsberg a92f5b657a Adding author's github id 10 years ago
Brian Coca 698098ae57 doc update for zypper 10 years ago
Gregory Haynes 44280e461c Add type property to zypper
To install patterns and other package types a type parameter needs to be
specified to zypper.
10 years ago
M0ses f8045f4574 fix errorhandling in zypper.py module
package_latest was calling package_present but did not care
about the return code so errors in package_present were hidden
and everthing look ok on the console when zypper update did not fail,
but no packages where installed.
10 years ago
Brian Coca 512c684b52 Merge pull request #128 from robinro/patch_multiple_versions_rpm_zypper
Patch multiple versions rpm zypper
10 years ago
Robin Roth 23495a16f4 fixed tab/space mix 10 years ago
Alexander Gubin 50a8774784 zypper: Fix gpg check option for state=latest. --no-gpg-checks is used in new and old zypper versions 10 years ago
Robin Roth 7948b91bad fix local change 10 years ago
Robin Roth 76142ddb97 Allow multiple versions in rpm state
Fix bug in ansible get_package_state and get_current_version that breaks when there are multiple versions of a package installed and there is a list of packages to install.
The previous implementation used 'zip' to match requested names to installed names which fails, because rpm outputs multiple lines per package when there are multiple versions.

Testcase: Install opensuse, install multiple kernel versions (happens by update)
Before patch: calling 
zypper: state=present for name={{item}} 
with_items: 
  - kernel-desktop
  - git

leads to ansible aborting.
After the patch ansible performs as expected and makes sure both packages are present.
Also the last version number is used for further update information in this version (before if only one package name was given the oldest version number was used).
10 years ago
Artem Chernikov 5a8652e7bc Fixing SuSE to SUSE as latter is the right one since some time 10 years ago
Michael DeHaan 7e6fc7023d Reorganization. 10 years ago