Skip to content
Snippets Groups Projects
Verified Commit d619c29b authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
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
No related branches found
No related tags found
No related merge requests found
Pipeline #5934 passed
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment