Inital commit

Good start
Added roles for setting up a user with zsh config and ssh keys
Also installation and configuriation of some packages
This commit is contained in:
2022-03-14 01:16:44 +01:00
parent 27a60cb898
commit b3d85445c5
18 changed files with 209 additions and 2 deletions

15
roles/user/tasks/main.yml Normal file
View File

@@ -0,0 +1,15 @@
- name: Create user
user:
name="{{ name }}"
groups="{{ item }}"
shell="{{ shell }}"
append=yes
ignore_errors: yes
with_items:
- "{{ user_groups }}"
- name: Add SSH pubkeys
authorized_key:
user="{{ name }}"
key="{{ item }}"
with_items:
- "{{ pubkeys }}"