Commit Graph

55 Commits (63513b5ebab06dd11cc06054415bde4ed521937f)

Author SHA1 Message Date
nmeum 926194f75d Make sure portage doesn't ask for confirmation
If EMERGE_DEFAULT_OPTS in make.conf(5) contains '--ask' then the portage
module doesn't work correctly, this commit fixes that
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