You've already forked ansible-role-repo-epel
Try to install a package using repo....
This commit is contained in:
@@ -21,3 +21,16 @@
|
||||
assert:
|
||||
that:
|
||||
- "'baseurl=' not in repofile.stdout"
|
||||
|
||||
- name: try to install htop from EPEL
|
||||
package:
|
||||
name: htop
|
||||
state: latest
|
||||
|
||||
- name: Gather the rpm package facts
|
||||
package_facts:
|
||||
manager: auto
|
||||
|
||||
- name: is htop actually installed?
|
||||
assert:
|
||||
that: 'htop' in ansible_facts.packages
|
||||
|
||||
@@ -23,3 +23,16 @@
|
||||
assert:
|
||||
that:
|
||||
- "'{{ lookup('env', 'EPEL_MIRROR_URL') }}' in repofile.stdout"
|
||||
|
||||
- name: try to install htop from EPEL
|
||||
package:
|
||||
name: htop
|
||||
state: latest
|
||||
|
||||
- name: Gather the rpm package facts
|
||||
package_facts:
|
||||
manager: auto
|
||||
|
||||
- name: is htop actually installed?
|
||||
assert:
|
||||
that: 'htop' in ansible_facts.packages
|
||||
|
||||
Reference in New Issue
Block a user