Created
March 17, 2016 18:46
-
-
Save colbygk/1698edafc1f9fe7344bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Setup Users | |
sudo: yes | |
user: | |
name: "{{ item }}" | |
comment: "{{ vault['linux'][item]['comment'] | default('No comment') }}" | |
createhome: "{{ vault['linux'][item]['createhome'] | default('yes') }}" | |
password: "{{ vault['linux'][item]['password'] | default('nopassword') }}" | |
state: "{{ vault['linux'][item]['state'] | default('present') }}" | |
shell: "{{ vault['linux'][item]['shell'] | default('/bin/bash') }}" | |
groups: "{{ vault['linux'][item]['groups'] | default(item) }}" | |
with_flattened: | |
"{{ auth_groups | default(['admin_users']) }}" | |
tags: | |
- users |
Author
colbygk
commented
Mar 17, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment