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:
15
roles/user/tasks/main.yml
Normal file
15
roles/user/tasks/main.yml
Normal 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 }}"
|
Reference in New Issue
Block a user