34 lines
659 B
YAML
34 lines
659 B
YAML
---
|
|
|
|
- tags: users
|
|
block:
|
|
|
|
- name: Groups
|
|
group:
|
|
name: "{{ item.name }}"
|
|
state: present
|
|
gid: "{{ item.gid }}"
|
|
loop_control:
|
|
label: "{{ item.name }}"
|
|
loop: "{{ users }}"
|
|
|
|
- name: Users
|
|
user:
|
|
name: "{{ item.name }}"
|
|
uid: "{{ item.uid }}"
|
|
group: "{{ item.name }}"
|
|
groups: "{{ item.groups }}"
|
|
shell: "{{ item.shell }}"
|
|
password: "{{ item.password }}"
|
|
loop_control:
|
|
label: "{{ item.name }}"
|
|
loop: "{{ users }}"
|
|
|
|
- name: zsh config
|
|
copy:
|
|
src: .zshrc
|
|
dest: "{{ item }}/.zshrc"
|
|
loop:
|
|
- '/home/admin'
|
|
- '/home/developer'
|
|
- '/root'
|