2022-05-09 08:17:07 +00:00
|
|
|
#jinja2: lstrip_blocks: True
|
|
|
|
#
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
#
|
2024-10-04 09:44:37 +00:00
|
|
|
{% for authorized_key in unix_user.value.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 %}
|
2022-05-09 08:17:07 +00:00
|
|
|
{% endfor %}
|