admin_users: fix logic error

This commit is contained in:
Jérémy Lecour 2017-07-19 11:54:01 +02:00 committed by Jérémy Lecour
parent 3b93ba0768
commit 44c679eb64

View file

@ -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: