ansible/roles/user/tasks/main.yml
Sivert V. Sæther b3d85445c5 Inital commit
Good start
Added roles for setting up a user with zsh config and ssh keys
Also installation and configuriation of some packages
2022-03-14 01:16:44 +01:00

15 lines
290 B
YAML

- 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 }}"