You've already forked ansible-role-repo-epel
26 lines
554 B
YAML
26 lines
554 B
YAML
|
|
---
|
||
|
|
# This is an example playbook to execute Ansible tests.
|
||
|
|
|
||
|
|
- name: Verify
|
||
|
|
hosts: all
|
||
|
|
tasks:
|
||
|
|
- name: Retrieve yum repofile
|
||
|
|
shell: cat /etc/yum.repos.d/epel.repo
|
||
|
|
ignore_errors: true
|
||
|
|
register: repofile
|
||
|
|
|
||
|
|
- name: metalink is not present
|
||
|
|
assert:
|
||
|
|
that:
|
||
|
|
- "'metalink=' not in repofile.stdout"
|
||
|
|
|
||
|
|
- name: baseurl is defined
|
||
|
|
assert:
|
||
|
|
that:
|
||
|
|
- "'baseurl=' in repofile.stdout"
|
||
|
|
|
||
|
|
- name: mirror is specified correctly
|
||
|
|
assert:
|
||
|
|
that:
|
||
|
|
- "'https://someproxyormirror.org.nz' in repofile.stdout"
|