Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
d547c7f607
commit
096a3e0540
69 changed files with 1650 additions and 0 deletions
14
tasks/users.yml
Normal file
14
tasks/users.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: Create users
|
||||
ansible.builtin.user:
|
||||
name: "{{ item['name'] }}"
|
||||
password: "{{ item['password'] }}"
|
||||
loop: "{{ users }}"
|
||||
|
||||
- name: Define bashrc
|
||||
ansible.builtin.copy:
|
||||
dest: "{% if item['name'] == 'root' %}/root{% else %}/home/{{ item['name'] }}{% endif %}/.bashrc"
|
||||
src: files/users/bashrc
|
||||
owner: "{{ item['name'] }}"
|
||||
group: "{{ item['name'] }}"
|
||||
loop: "{{ users }}"
|
Loading…
Add table
Add a link
Reference in a new issue