From 9b2a3a6db2a488d00fa2d12c886550c71c9c9f7f Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Mon, 10 May 2021 07:42:19 +0200 Subject: [PATCH] evolinux-users: convert uid to string --- evolinux-users/tasks/user.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evolinux-users/tasks/user.yml b/evolinux-users/tasks/user.yml index 4939f533..0f8bd480 100644 --- a/evolinux-users/tasks/user.yml +++ b/evolinux-users/tasks/user.yml @@ -4,11 +4,11 @@ - fail: msg: "You must provide a value for the 'user.name ' variable." - when: user.name is not defined or user.name | length == 0 + when: (user.name is not defined) or (user.name | length == 0) - fail: msg: "You must provide a value for the 'user.uid ' variable." - when: user.uid is not defined or user.uid | length == 0 + when: (user.uid is not defined) or (user.uid | string | length == 0) - name: "Test if '{{ user.name }}' exists" command: 'id -u "{{ user.name }}"'