ansible/test/integration/targets/yum/tasks/cacheonly.yml

17 lines
319 B
YAML
Raw Normal View History

---
- 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"