From 242058a10ba01a62c9bf3d681f0254e5e3b8543e Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 6 Nov 2020 09:47:43 +0100 Subject: [PATCH] tests: For Fedora containers, make sure the sshd host keys exist --- tests/tests_match.yml | 3 +++ tests/tests_match_iterate.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/tests_match.yml b/tests/tests_match.yml index 3e704f4..829e628 100644 --- a/tests/tests_match.yml +++ b/tests/tests_match.yml @@ -5,6 +5,9 @@ include_role: name: ansible-sshd vars: + # For Fedora containers, we need to make sure we have keys for sshd -T below + sshd_verify_hostkeys: + - /etc/ssh/ssh_host_rsa_key sshd: Match: - Condition: "User xusers" diff --git a/tests/tests_match_iterate.yml b/tests/tests_match_iterate.yml index 5ed3e69..7c23564 100644 --- a/tests/tests_match_iterate.yml +++ b/tests/tests_match_iterate.yml @@ -5,6 +5,9 @@ include_role: name: ansible-sshd vars: + # For Fedora containers, we need to make sure we have keys for sshd -T below + sshd_verify_hostkeys: + - /etc/ssh/ssh_host_rsa_key sshd: Match: - Condition: "User xusers"