kubespray/roles/adduser/tasks/main.yml

17 lines
517 B
YAML
Raw Normal View History

---
2016-01-24 01:01:18 +08:00
- name: User | Create User Group
group:
name: "{{ user.group|default(user.name) }}"
system: "{{ user.system|default(omit) }}"
2016-01-24 01:01:18 +08:00
- name: User | Create User
user:
comment: "{{ user.comment|default(omit) }}"
2022-09-23 15:26:39 +08:00
create_home: "{{ 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) }}"
when: user.name != "root"