From 75fea198c28db989eccb3c1f675332d58bdf2684 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 3 Feb 2024 16:43:11 +0100 Subject: [PATCH] fix: condition --- tasks/create_unix_user.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/create_unix_user.yml b/tasks/create_unix_user.yml index 659b705..8c772c9 100644 --- a/tasks/create_unix_user.yml +++ b/tasks/create_unix_user.yml @@ -123,7 +123,7 @@ mode: "0600" with_items: - "{{ unix_user.value.ssh.private_keys }}" - when: unix_user.value.ssh.private_keys is defined and unix_user.value.ssh.private_keys | length >= 0 + when: unix_user.value.ssh.private_keys is defined and unix_user.value.ssh.private_keys | length > 0 - name: "Extract public SSH keys from private keys for unix user: {{ unix_user.key }}" ansible.builtin.shell: