forked from evolix/ansible-roles
evolinux-users: convert uid to string
This commit is contained in:
parent
d823c8116a
commit
9b2a3a6db2
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
- fail:
|
- fail:
|
||||||
msg: "You must provide a value for the 'user.name ' variable."
|
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:
|
- fail:
|
||||||
msg: "You must provide a value for the 'user.uid ' variable."
|
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"
|
- name: "Test if '{{ user.name }}' exists"
|
||||||
command: 'id -u "{{ user.name }}"'
|
command: 'id -u "{{ user.name }}"'
|
||||||
|
|
Loading…
Reference in a new issue