mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-09-28 17:21:46 +02:00
0d78c950d2
Ex: in case the user has multiple smartcards.
12 lines
436 B
Django/Jinja
12 lines
436 B
Django/Jinja
#jinja2: lstrip_blocks: True
|
|
{% for user in root_ssh_keys | sort(attribute="key") -%}
|
|
{% if user.hosts is not defined or inventory_hostname in user.hosts -%}
|
|
{{ lookup('file', role_path + '/../../pubkeys/' + user.key ) }}
|
|
{% if user.additional_keys is defined %}
|
|
{% for key in user.additional_keys | sort -%}
|
|
{{ lookup('file', role_path + '/../../pubkeys/' + key ) }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|