authorized_keys.j2 338 Bytes
Newer Older
1
2
3
4
#jinja2: lstrip_blocks: True
{{ lookup('file', '../pubkeys/' + item.value.ssh_key) }}
{% if item.value.additional_ssh_keys is defined %}
	{% for key in item.value.additional_ssh_keys %}
5
		{% if inventory_hostname in key.hosts or 'all' in key.hosts %}
6
7
8
9
{{ lookup('file', '../pubkeys/' + key.name) }}
		{% endif %}
	{% endfor %}
{% endif %}