From a2646b75519ab405bf845fa1c3e58a79f53f5bf1 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 6 Aug 2021 21:59:33 +0200 Subject: [PATCH] tests: Fix condition to match also CentOS --- tests/tests_hostkeys_missing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests_hostkeys_missing.yml b/tests/tests_hostkeys_missing.yml index e4cee9f..94375dd 100644 --- a/tests/tests_hostkeys_missing.yml +++ b/tests/tests_hostkeys_missing.yml @@ -34,7 +34,7 @@ msg: "Role has not failed when it should have" when: - ansible_facts['os_family'] != 'Debian' - - not (ansible_facts['distribution'] == 'RedHat' and ansible_facts['distribution_major_version'] == '6') + - not (ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '6') tags: tests::verify - name: Make sure the key was not created