ansible/roles/common/tasks/users.yml
2023-09-25 10:40:20 +02:00

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