Ensure backup_keys isn't empty
This commit is contained in:
parent
16715f0e35
commit
69c037c136
|
@ -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