ansible-role-system/tasks/users.yml

13 lines
364 B
YAML
Raw Normal View History

---
# vim: set et sw=2 sts=2 ts=2:
2021-06-23 16:53:57 +02:00
- 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