Ensure backup_keys isn't empty
This commit is contained in:
@ -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 %}
|
||||||
|
Reference in New Issue
Block a user