Try to install a package using repo....

This commit is contained in:
2021-05-02 23:13:31 +12:00
parent 98e5ff52eb
commit a04026b7db
2 changed files with 26 additions and 0 deletions

View File

@@ -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

View File

@@ -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