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:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "'baseurl=' not in repofile.stdout"
|
- "'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:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "'{{ lookup('env', 'EPEL_MIRROR_URL') }}' in repofile.stdout"
|
- "'{{ 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