2021-02-24 21:40:34 +00:00
|
|
|
---
|
|
|
|
- name: create system user
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
2021-02-24 21:40:34 +00:00
|
|
|
user:
|
2022-02-13 08:40:15 +00:00
|
|
|
name: "{{ item.name }}"
|
|
|
|
system: true
|
|
|
|
home: "{{ item.home | default('/') }}"
|
|
|
|
shell: "{{ item.shell |default('/usr/bin/nologin') }}"
|
|
|
|
with_items: "{{ system_user }}"
|
2021-02-24 21:40:34 +00:00
|
|
|
|
|
|
|
- name: create system group
|
|
|
|
group:
|
2022-02-13 08:40:15 +00:00
|
|
|
name: "{{ item.name }}"
|
|
|
|
with_items: "{{ system_group }}"
|
|
|
|
become: true
|