20 lines
346 B
YAML
20 lines
346 B
YAML
# 2023-09-25
|
|
# Tasks: users
|
|
---
|
|
|
|
- name: Create new users
|
|
ansible.builtin.user:
|
|
append: yes
|
|
name: "{{ item.name }}"
|
|
group: "{{ item.name }}"
|
|
shell: "{{ item.shell }}"
|
|
groups: "{{ item.groups }}"
|
|
with_items:
|
|
- "{{ users }}"
|
|
when:
|
|
- ansible_facts['system'] == "Linux"
|
|
tags:
|
|
- system
|
|
- users
|
|
- create
|