From a04026b7db6b2a18c27408afe0acd8e5007cf4af Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Sun, 2 May 2021 23:13:31 +1200 Subject: [PATCH] Try to install a package using repo.... --- molecule/default/verify.yml | 13 +++++++++++++ molecule/mirror-is-set/verify.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml index 7695064..ac663b5 100644 --- a/molecule/default/verify.yml +++ b/molecule/default/verify.yml @@ -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 diff --git a/molecule/mirror-is-set/verify.yml b/molecule/mirror-is-set/verify.yml index 438fda8..a8b6cec 100644 --- a/molecule/mirror-is-set/verify.yml +++ b/molecule/mirror-is-set/verify.yml @@ -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