Ensure backup_keys isn't empty

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:25 -04:00
parent 91b5cb6ba2
commit 5c46bb0db7
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# backup user authorized_keys
# {{ ansible_managed }}
{% if backup_keys is defined %}
{% if backup_keys is defined and backup_keys %}
{% for key in backup_keys %}
{{ key }}
{% endfor %}