From e092d8a2f3fdc3929beb9294e788659f9bddb79d Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Wed, 19 Aug 2026 12:30:18 -0600 Subject: [PATCH] test: getcert list on el7 does not show issuer_template getcert list on el7 does not show issuer_template, so skip the check. Signed-off-by: Rich Megginson --- tests/tasks/assert_certificate_parameters.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/tasks/assert_certificate_parameters.yml b/tests/tasks/assert_certificate_parameters.yml index 36553e4b..1861a8b8 100644 --- a/tests/tasks/assert_certificate_parameters.yml +++ b/tests/tasks/assert_certificate_parameters.yml @@ -193,6 +193,7 @@ {{ cert['auto_renew'] | default('yes') | bool }} != {{ result.stdout | bool }} + # getcert on el7 does not show issuer template, so skip this check - name: Retrieve issuer template shell: >- set -euo pipefail; @@ -201,7 +202,9 @@ sed 's/^\s\+issuer template: //g' register: result changed_when: false - when: cert.issuer_template is defined + when: + - cert.issuer_template is defined + - ansible_facts["os_family"] != "RedHat" or ansible_facts["distribution_major_version"] is version("7", ">") - name: Verify certificate issuer template assert: @@ -210,7 +213,9 @@ fail_msg: >- {{ cert['issuer_template'] | trim }} != {{ result.stdout | trim }} - when: cert.issuer_template is defined + when: + - cert.issuer_template is defined + - ansible_facts["os_family"] != "RedHat" or ansible_facts["distribution_major_version"] is version("7", ">") - name: Stat commands file stat: