Files
ansible-role-root/templates/root/.ssh/authorized_keys.j2
T
volker.raschekandCopilot 14984e7469
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
fix(ssh): use inline SSH key content
Co-authored-by: Copilot <copilot@github.com>
2026-10-17 23:17:59 +02:00

11 lines
311 B
Django/Jinja

#
# {{ ansible_managed }}
#
{% for authorized_key in root.ssh.authorized_keys %}
{% if authorized_key.command is defined and authorized_key.command | length > 0 %}
command="{{ authorized_key.command }}" {{ authorized_key.content | trim }}
{% else %}
{{ authorized_key.content | trim }}
{% endif %}
{% endfor %}