fix(ssh): use inline SSH key content
Lint Markdown files / markdown-lint (push) Successful in 26s
Ansible Linter / ansible-lint (push) Successful in 1m54s
Release Ansible Role / Release Ansible Role (push) Successful in 3m9s

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
volker.raschekandCopilot committed 2026-10-17 23:17:59 +02:00
1 parent 874e1d633a
commit 14984e7469
3 files changed
+19 -10

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@
#
{% for authorized_key in root.ssh.authorized_keys %}
{% if authorized_key.command is defined and authorized_key.command | length > 0 %}
command="{{ authorized_key.command }}" {{ lookup('file', 'ssh/authorized_keys/' + authorized_key.filename ) }}
command="{{ authorized_key.command }}" {{ authorized_key.content | trim }}
{% else %}
{{ lookup('file', 'ssh/authorized_keys/' + authorized_key.filename ) }}
{{ authorized_key.content | trim }}
{% endif %}
{% endfor %}