mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-26 13:00:18 +01:00
Accept single hostkey as a string too
This commit is contained in:
parent
bb979290db
commit
f12b322aae
1 changed files with 5 additions and 1 deletions
|
@ -39,7 +39,11 @@
|
||||||
{% if not sshd_verify_hostkeys %}
|
{% if not sshd_verify_hostkeys %}
|
||||||
[]
|
[]
|
||||||
{% elif sshd_verify_hostkeys == 'auto' %}
|
{% elif sshd_verify_hostkeys == 'auto' %}
|
||||||
|
{% if sshd_HostKey is string %}
|
||||||
|
[ {{ __sshd_hostkeys_from_config }} ]
|
||||||
|
{% else %}
|
||||||
{{ __sshd_hostkeys_from_config }}
|
{{ __sshd_hostkeys_from_config }}
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ sshd_verify_hostkeys | to_json }}
|
{{ sshd_verify_hostkeys | to_json }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue