From 8cd2fd48c40c616bfe7faa07a66e68ece0bd12e2 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Fri, 15 Nov 2024 10:38:17 -0700 Subject: [PATCH] test: cockpit-pcp is deprecated - use cockpit-composer The tests_packages_full test is failing on el9.6 and later - cockpit-pcp is missing - use cockpit-composer instead which seems to be available on all EL platform versions. Signed-off-by: Rich Megginson --- tests/tests_packages_full.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/tests_packages_full.yml b/tests/tests_packages_full.yml index 6957730..969b99f 100644 --- a/tests/tests_packages_full.yml +++ b/tests/tests_packages_full.yml @@ -1,6 +1,7 @@ --- - name: "Test cockpit_packages: full" hosts: all + gather_facts: true tasks: - name: Tests block: @@ -32,10 +33,14 @@ when: "'cockpit' not in ansible_facts.packages" # extra package (part of full) - - name: Test - cockpit-pcp is installed + - name: Test - extra package is installed fail: - msg: cockpit-pcp is not installed - when: "'cockpit-pcp' not in ansible_facts.packages" + msg: "{{ _extra_pkg }} is not installed" + when: _extra_pkg not in ansible_facts.packages + vars: + _extra_pkg: "{{ 'cockpit-composer' + if ansible_facts['os_family'] == 'RedHat' + else 'ansible-pcp' }}" # another extra package (part of full) - name: Test - cockpit-doc is installed