You've already forked repo-almalinux
Initial Import
This commit is contained in:
25
molecule/mirror-is-set/verify.yml
Normal file
25
molecule/mirror-is-set/verify.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
# This is an example playbook to execute Ansible tests.
|
||||
|
||||
- name: Verify
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Retrieve yum repofile
|
||||
shell: cat /etc/yum.repos.d/almalinux.repo
|
||||
ignore_errors: true
|
||||
register: repofile
|
||||
|
||||
- name: mirrorlist is not present
|
||||
assert:
|
||||
that:
|
||||
- "'mirrorlist=' 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"
|
||||
Reference in New Issue
Block a user