2016-02-19 17:48:53 +00:00
|
|
|
---
|
2016-01-23 17:01:18 +00:00
|
|
|
- name: User | Create User Group
|
2017-02-17 21:22:34 +00:00
|
|
|
group:
|
2019-05-02 21:24:21 +00:00
|
|
|
name: "{{ user.group|default(user.name) }}"
|
|
|
|
system: "{{ user.system|default(omit) }}"
|
2016-01-23 17:01:18 +00:00
|
|
|
|
|
|
|
- name: User | Create User
|
|
|
|
user:
|
2019-05-02 21:24:21 +00:00
|
|
|
comment: "{{ user.comment|default(omit) }}"
|
2022-09-23 07:26:39 +00:00
|
|
|
create_home: "{{ user.create_home|default(omit) }}"
|
2019-05-02 21:24:21 +00:00
|
|
|
group: "{{ user.group|default(user.name) }}"
|
|
|
|
home: "{{ user.home|default(omit) }}"
|
|
|
|
shell: "{{ user.shell|default(omit) }}"
|
|
|
|
name: "{{ user.name }}"
|
|
|
|
system: "{{ user.system|default(omit) }}"
|
2022-08-16 06:55:07 +00:00
|
|
|
when: user.name != "root"
|