diff --git a/tasks/users.yml b/tasks/users.yml index ab5f744..9805452 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -14,6 +14,13 @@ gid: "{{ user.gid | default(omit) }}" 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 }}'." tags: users,sudo ansible.builtin.template: