Add alternative syntax for upgrading all installed packages via apt (#25007)

syntax: 'apt: name=* state=latest'

feature #24189
This commit is contained in:
Brendan Almonte 2017-05-24 16:04:38 -07:00 committed by Toshio Kuratomi
commit b820d024fc
2 changed files with 25 additions and 1 deletions

View file

@ -148,3 +148,15 @@
assert:
that:
- "dpkg_force.changed"
# NEGATIVE: upgrade all packages while providing additional packages to install
- name: provide additional packages to install while upgrading all installed packages
apt: pkg=*,test state=latest
ignore_errors: True
register: apt_result
- name: verify failure of upgrade packages and install
assert:
that:
- "not apt_result.changed"
- "apt_result.failed"