ansible-role-root/templates/root/.ssh/authorized_keys.j2
Markus Pesch 08cd2799ce
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 14s
Ansible Linter / ansible-lint (push) Successful in 1m5s
Initial COmmit
2025-04-28 11:28:52 +02:00

11 lines
383 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 }}" {{ lookup('file', 'ssh/authorized_keys/' + authorized_key.filename ) }}
{% else %}
{{ lookup('file', 'ssh/authorized_keys/' + authorized_key.filename ) }}
{% endif %}
{% endfor %}