ansible/roles/user/tasks/main.yml
Sivert V. Sæther a70d58f3f7 Ansible god!
Big rework!
Control stuffs with variables!
We still should do some movei'n around of roles before extending
features.
2022-03-23 02:03:04 +01:00

17 lines
349 B
YAML

- name: Create user
when: "'system' in setup"
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 }}"
- import_tasks: doom-emacs.yml