ansible/roles/user/tasks/main.yml

17 lines
349 B
YAML
Raw Permalink Normal View History

- 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