16 lines
539 B
YAML
16 lines
539 B
YAML
---
|
|
- name: gather os specific variables
|
|
include_vars: inventory/group_vars/all.yml
|
|
|
|
- name: User | Create User Group
|
|
group: name={{user.group|default(user.name)}} system={{user.system|default(omit)}}
|
|
|
|
- name: User | Create User
|
|
user:
|
|
comment: "{{user.comment|default(omit)}}"
|
|
createhome: "{{user.create_home|default(omit)}}"
|
|
group: "{{user.group|default(user.name)}}"
|
|
home: "{{user.home|default(omit)}}"
|
|
shell: "{{user.shell|default(omit)}}"
|
|
name: "{{user.name}}"
|
|
system: "{{user.system|default(omit)}}"
|