From 44c679eb645b37eec9c07b181eeb19a2879eea19 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Wed, 19 Jul 2017 11:54:01 +0200 Subject: [PATCH] admin_users: fix logic error --- admin-users/tasks/adduser_debian.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin-users/tasks/adduser_debian.yml b/admin-users/tasks/adduser_debian.yml index 9fca4725..5c16f385 100644 --- a/admin-users/tasks/adduser_debian.yml +++ b/admin-users/tasks/adduser_debian.yml @@ -16,7 +16,7 @@ shell: /bin/bash password: '{{ user.password_hash }}' update_password: on_create - when: uidisbusy.rc == 0 + when: uidisbusy.rc != 0 - name: "Add Unix account with random uid for '{{ user.name }}'" user: @@ -26,7 +26,7 @@ shell: /bin/bash password: '{{ user.password_hash }}' update_password: on_create - when: uidisbusy.rc != 0 + when: uidisbusy.rc == 0 - name: "Fix perms on homedirectory for '{{ user.name }}'" file: