ansible-role-system/tasks/users.yml
2024-11-24 22:15:48 +01:00

12 lines
364 B
YAML

---
# vim: set et sw=2 sts=2 ts=2:
- name: 'setup default user(s)'
with_items: '{{sys_default_users}}'
user:
name: '{{item.name}}'
home: '{{item.home | default("/home/"+item.name)}}'
shell: '{{item.shell | default("/usr/bin/zsh")}}'
groups: '{{item.groups | default([users])}}'
createhome: yes
move_home: yes
append: yes