blob: bf9f6f8f0dbb1f2ef20d21e382413a7e1ecc267c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
---
- name: Create docker group
group: name=docker state=present
- name: Create remote_access group
group: name=remote_access state=present
- name: Add users
user:
name: "{{ item.login }}"
groups: "users{% if 'groups' in item %},{{ item.groups|join(',') }}{% endif %}"
shell: "{{ item.shell }}"
with_items: "{{ users }}"
- name: Setup authorized keys for users
authorized_key:
user: "{{ item.login }}"
key: "{{ item.pubkey }}"
with_items: "{{ users }}"
|