ansible/test/integration/targets/yum/tasks/cacheonly.yml
Amin Vakil fdee5ca16d
Add cacheonly option to yum and dnf modules (#73820)
* Add integration test

* Add changelog

Co-authored-by: Matt Clay <matt@mystile.com>
2021-04-16 11:08:52 -04:00

16 lines
319 B
YAML

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