system/tasks/usergroup.yml
vincent 1419eaa003
All checks were successful
continuous-integration/drone/push Build is passing
style: correct ansible lint
2022-12-10 20:25:54 +01:00

16 lines
384 B
YAML

---
- name: Create system user
become: true
ansible.builtin.user:
name: '{{ item.name }}'
system: true
home: "{{ item.home | default('/') }}"
shell: "{{ item.shell | default('/usr/bin/nologin') }}"
with_items: '{{ system_user }}'
- name: Create system group
ansible.builtin.group:
name: '{{ item.name }}'
with_items: '{{ system_group }}'
become: true