re add home directory creation
This commit is contained in:
parent
cc8f2e665d
commit
738674f20d
|
@ -14,6 +14,13 @@
|
||||||
gid: "{{ user.gid | default(omit) }}"
|
gid: "{{ user.gid | default(omit) }}"
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
|
|
||||||
|
- name: "Create home directory for user '{{ user.username }}'."
|
||||||
|
tags: users
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: "{{ user.username }}"
|
||||||
|
create_home: yes
|
||||||
|
when: ldap_uris is defined and ldap_uris | length > 0
|
||||||
|
|
||||||
- name: "Create sudoers file for user '{{ user.username }}'."
|
- name: "Create sudoers file for user '{{ user.username }}'."
|
||||||
tags: users,sudo
|
tags: users,sudo
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
Loading…
Reference in New Issue