mirror of https://github.com/ansible/ansible.git
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.
17 lines
319 B
YAML
17 lines
319 B
YAML
4 years ago
|
---
|
||
|
- 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"
|