From f6d26d8781be8be7b086d0980a78044b2dfdd72e Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 9 Aug 2021 08:50:01 +0200 Subject: [PATCH] tests: Skip service status check on RHEL6 the init system there can not just "check" the status --- tests/tests_hostkeys_missing.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tests_hostkeys_missing.yml b/tests/tests_hostkeys_missing.yml index 0acfce7..ad739a4 100644 --- a/tests/tests_hostkeys_missing.yml +++ b/tests/tests_hostkeys_missing.yml @@ -52,6 +52,8 @@ register: result failed_when: result.changed tags: tests::verify + when: + - not (ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '6') - name: "Restore configuration files" include_tasks: tasks/restore.yml