feat: manage custom uid
This commit is contained in:
parent
975dd6d8aa
commit
153d2870ee
@ -9,3 +9,4 @@ user_home: "/home/{{ user_name }}"
|
|||||||
user_shell: "/bin/bash"
|
user_shell: "/bin/bash"
|
||||||
user_privatekey: []
|
user_privatekey: []
|
||||||
user_autorized_key: []
|
user_autorized_key: []
|
||||||
|
user_uid:
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
system: true
|
system: true
|
||||||
password: "{{ user_password | default('') }}"
|
password: "{{ user_password | default('') }}"
|
||||||
groups: "{{ user_groups | join(',') }}"
|
groups: "{{ user_groups | join(',') }}"
|
||||||
|
uid: "{{ user_uid }}"
|
||||||
home: "{{ user_home | default('/') }}"
|
home: "{{ user_home | default('/') }}"
|
||||||
shell: "{{ user_shell | default('/usr/bin/nologin') }}"
|
shell: "{{ user_shell | default('/usr/bin/nologin') }}"
|
||||||
when: user_name != "root" and not user_ldap
|
when: user_name != "root" and not user_ldap
|
||||||
|
Loading…
Reference in New Issue
Block a user