admin_users: fix logic error
This commit is contained in:
parent
3b93ba0768
commit
44c679eb64
|
@ -16,7 +16,7 @@
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
password: '{{ user.password_hash }}'
|
password: '{{ user.password_hash }}'
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
when: uidisbusy.rc == 0
|
when: uidisbusy.rc != 0
|
||||||
|
|
||||||
- name: "Add Unix account with random uid for '{{ user.name }}'"
|
- name: "Add Unix account with random uid for '{{ user.name }}'"
|
||||||
user:
|
user:
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
password: '{{ user.password_hash }}'
|
password: '{{ user.password_hash }}'
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
when: uidisbusy.rc != 0
|
when: uidisbusy.rc == 0
|
||||||
|
|
||||||
- name: "Fix perms on homedirectory for '{{ user.name }}'"
|
- name: "Fix perms on homedirectory for '{{ user.name }}'"
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Reference in a new issue