You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/dnf/tasks/cacheonly.yml

17 lines
366 B
YAML

---
- name: Test cacheonly (clean before testing)
command: dnf clean all
- name: Try installing from cache where it has been cleaned
dnf:
name: sos
state: latest
cacheonly: true
register: dnf_result
ignore_errors: true
- name: Verify dnf failed or has not changed
assert:
that:
- "dnf_result is failed or not dnf_result is changed"