community.general/lib/ansible/modules
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
2017-08-10 09:25:56 -04:00
..
cloud ovirt_templates: fixed typo in doc (#27883) 2017-08-10 08:32:36 -04:00
clustering Add ConfigMap support to kubernetes module (#21014) 2017-08-09 16:03:35 -04:00
commands command: PEP8 compliancy (#27740) 2017-08-04 08:39:13 +02:00
crypto crypto/openssl_*: Standardize implementaton and add support keyUsage, extenededKeyUsage (#27281) 2017-08-03 12:27:17 +01:00
database Improve error messages when MySQLdb is not installed (#27871) 2017-08-08 12:59:51 -04:00
files New module: Support manipulating XML files (#25323) 2017-08-08 20:21:03 -07:00
identity CyberArk User Management (#27519) 2017-08-08 18:34:40 -07:00
inventory Get rid of more wildcard imports and add boilerplate to more modules 2017-07-29 07:02:12 -07:00
messaging Pep8 fixes for rabbitmq modules (#24590) 2017-08-10 11:57:11 +02:00
monitoring Add a sensu_client module 2017-08-09 16:36:39 -04:00
net_tools Fixes #27836: get_url check if directory exists (#27852) 2017-08-10 09:57:19 +10:00
network stops trying to filter out commands from config (#28002) 2017-08-10 09:18:44 -04:00
notification New Module: Notification module for Office 365 Connector Cards (#27636) 2017-08-10 04:04:49 +02:00
packaging Use apt-get as fallback for apt upgrade 2017-08-10 09:25:56 -04:00
remote_management hpilo modules: PEP8 fixes (#27739) 2017-08-04 11:52:31 +02:00
source_control remove wildcards and add boilerplate 2017-07-29 14:13:30 -07:00
storage purefa_volume: Fix typo in required_if (#27921) 2017-08-10 09:34:45 +02:00
system fix incorrect joingin of command for chpasswd 2017-08-10 09:23:13 -04:00
utilities utilities modules: PEP8 compliancy (#27741) 2017-08-10 09:36:28 +01:00
web_infrastructure Fix documentation issue in jira module (#27820) (#27823) 2017-08-07 14:04:35 +05:30
windows win_stat: add explicit error message when file is in use (#27826) 2017-08-07 12:04:42 +10:00
__init__.py Re-adding the init py for modules 2016-12-08 11:35:20 -05:00