Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
d619c29b
Verified
Commit
d619c29b
authored
Mar 27, 2021
by
Jelle van der Waa
🚧
Browse files
Allow for a key to be deployed on all hosts
To use a key as backup key to be deployed on all hosts.
parent
d3a8eee5
Pipeline
#5934
passed with stage
in 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
roles/archusers/templates/authorized_keys.j2
View file @
d619c29b
...
...
@@ -2,7 +2,7 @@
{{ lookup('file', '../pubkeys/' + item.value.ssh_key) }}
{% if item.value.additional_ssh_keys is defined %}
{% for key in item.value.additional_ssh_keys %}
{% if inventory_hostname in key.hosts %}
{% if inventory_hostname in key.hosts
or 'all' in key.hosts
%}
{{ lookup('file', '../pubkeys/' + key.name) }}
{% endif %}
{% endfor %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment