This commit is contained in:
Niko Kurtti
2015-03-24 12:18:13 +02:00
commit 34553aa6f4
48 changed files with 1278 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
- name: create admin group
group: name=admin state=present
- name: create users
user: >
name={{ item.name }}
groups=admin
shell=/bin/bash
password={{ item.password }}
with_items: users
- name: set authorized keys
authorized_key: >
user='{{ item.name }}'
key='{{lookup('file', item.public_key)}}'
with_items: users