mirror of
https://github.com/ansible/ansible.git
synced 2026-08-02 08:03:18 +02:00
This brings in integration test fixes from the data tagging PR which are unrelated to DT changes.
21 lines
580 B
YAML
21 lines
580 B
YAML
# These are safe to just check in check_mode, because in the module, the
|
|
# logic to match packages will happen anyway. check_mode will just prevent
|
|
# the transaction from actually running once the matches are found.
|
|
- name: Remove {{ item }}
|
|
dnf:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
check_mode: true
|
|
register: sos_rm
|
|
|
|
- debug:
|
|
var: sos_rm
|
|
|
|
- assert:
|
|
that:
|
|
- sos_rm is successful
|
|
- sos_rm is changed
|
|
- |
|
|
sos_rm.results|select("contains", "Removed: sos-" ~ sos_version ~ "-" ~ sos_release) | length > 0
|
|
- sos_rm.results|length > 0
|