16 lines
384 B
YAML
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
|