Verified Commit d619c29b authored by Jelle van der Waa's avatar 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
......@@ -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 %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment