feat: manage custom uid

This commit is contained in:
vincent 2023-01-15 12:52:55 +01:00
parent 975dd6d8aa
commit 153d2870ee
2 changed files with 2 additions and 0 deletions

View File

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

View File

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