mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Add alternative syntax for upgrading all installed packages via apt (#25007)
syntax: 'apt: name=* state=latest' feature #24189
This commit is contained in:
parent
5c43bd3bae
commit
b820d024fc
2 changed files with 25 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue