You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test
Valentin Krasontovitsch cfff72e9db Use apt-get as fallback for apt upgrade
In answer to #2540, `aptitude` was introduced as tool of choice for running
upgrades in the apt module and installing new packages that arise as
dependencies during upgrades.

This recently lead to problems, as for example Ubuntu Xenial (16.04) ships
without aptitude (installed).

Studying the man pages of both apt-get and aptitude, it appears that we can
achieve the effects of `aptitude safe-upgrade` using

```
apt-get upgrade --with-new-pkgs --autoremove
```

while `aptitude full-upgrade` seems to be identical to `apt-get dist-upgrade`.

We use `apt-get` as described above as a fall-back in case that `aptitude`
cannot be found, issuing a warning when it does so.

Furthermore it introduces a flag `force_apt_get` which may be used to enforce
usage of apt-get (which does not issue a warning).

The integration tests are updated accordingly.

Cf. also the discussion in #27370.

Fixes #18987
9 years ago
..
compile Docs how to test (2nd) (#24094) 9 years ago
integration Use apt-get as fallback for apt upgrade 9 years ago
results Create bot friendly sanity output. (#22381) 9 years ago
runner Restore f5 unit test requirements. (#27992) 9 years ago
sanity Pep8 fixes for rabbitmq modules (#24590) 9 years ago
units template: fix KeyError: 'undefined variable: 0 (#27972) 9 years ago
utils Add opensuse42.3 docker image. 9 years ago