From f12b322aaef124589ce5475e62725d3d94b74d98 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Sat, 21 Nov 2020 00:23:30 +0100 Subject: [PATCH] Accept single hostkey as a string too --- tasks/install.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/install.yml b/tasks/install.yml index 2b7f6fd..45bbf8c 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -39,7 +39,11 @@ {% if not sshd_verify_hostkeys %} [] {% elif sshd_verify_hostkeys == 'auto' %} - {{ __sshd_hostkeys_from_config }} + {% if sshd_HostKey is string %} + [ {{ __sshd_hostkeys_from_config }} ] + {% else %} + {{ __sshd_hostkeys_from_config }} + {% endif %} {% else %} {{ sshd_verify_hostkeys | to_json }} {% endif %}