Use aptitude safe-upgrade instead of apt-get upgrade to implement
apt: upgrade=yes. Using aptitude ensures that missing dependencies
will also be installed.
Fixes#2540
- 'If yes, performs an apt-get upgrade. If dist, performs an apt-get dist-upgrade. Note: This does not upgrade a specific package, use state=latest for that.'
- 'If yes, performs an aptitude safe-upgrade. If dist, performs an apt-get dist-upgrade. Note: This does not upgrade a specific package, use state=latest for that.'
version_added: "1.1"
version_added: "1.1"
required: false
required: false
default: no
default: no
@ -91,6 +91,7 @@ examples:
description: Install latest version of C(openjdk-6-jdk) ignoring C(install-reccomends)
description: Install latest version of C(openjdk-6-jdk) ignoring C(install-reccomends)
- code: "apt: upgrade=dist"
- code: "apt: upgrade=dist"
description: Update all packages to the latest version
description: Update all packages to the latest version