system/tasks/usergroup.yml
2021-02-24 22:40:34 +01:00

17 lines
351 B
YAML

---
- name: create system user
become: yes
user:
name: "{{item.name}}"
system: yes
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: yes