system/tasks/usergroup.yml
2022-02-13 09:42:01 +01:00

16 lines
351 B
YAML

---
- name: create system user
become: true
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
group:
name: "{{ item.name }}"
with_items: "{{ system_group }}"
become: true