ansible/roles/common/tasks/users.yml

20 lines
346 B
YAML
Raw Permalink Normal View History

2023-09-25 08:40:20 +00:00
# 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