15 lines
290 B
YAML
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 }}"
|