Ensure backup_keys isn't empty
This commit is contained in:
parent
91b5cb6ba2
commit
5c46bb0db7
|
@ -1,7 +1,7 @@
|
||||||
# backup user authorized_keys
|
# backup user authorized_keys
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
{% if backup_keys is defined %}
|
{% if backup_keys is defined and backup_keys %}
|
||||||
{% for key in backup_keys %}
|
{% for key in backup_keys %}
|
||||||
{{ key }}
|
{{ key }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue