Initial commit

This commit is contained in:
Alex 2020-05-25 21:33:53 +02:00
commit ec6918d583
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 10 additions and 0 deletions

10
tasks/main.yml Normal file
View File

@ -0,0 +1,10 @@
- name: Create users
loop: "{{ users }}"
user:
name: '{{ item.name }}'
shell: '{{ item.shell|default("/bin/bash") }}'
password_lock: '{% if item.lock %}yes{% else %}no{% endif %}'
system: '{% if item.system %}yes{% else %}no{% endif %}'
comment: '{{ item.comm|default("No comment") }}'
tags:
- users