From 4048ff33e3967f1abf64f87b67fc64c736270bc4 Mon Sep 17 00:00:00 2001 From: Enrico Nasca Date: Thu, 19 Oct 2023 09:53:23 +0000 Subject: [PATCH] Set the default for ssh_public_key to empty list. --- ansible/playbooks/single_user_management.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/playbooks/single_user_management.yml b/ansible/playbooks/single_user_management.yml index 7ac16a9e..9834790a 100644 --- a/ansible/playbooks/single_user_management.yml +++ b/ansible/playbooks/single_user_management.yml @@ -38,7 +38,7 @@ sn: "{{ last_name }}" mail: "{{ email }}" loginshell: "{{ login_shell | default('/bin/bash') }}" - sshpubkey: "{{ ssh_public_key }}" + sshpubkey: "{{ ssh_public_key | default([]) }}" validate_certs: false state: "{{ desired_state | default('present') }}" when: username is defined