Skip to content

Commit f8ab337

Browse files
committed
Merge pull request #9 from twc-openstack/add_password
Add password support
2 parents 49d98b0 + 76aab5e commit f8ab337

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ The following attributes are required for each user:
2828
* name - The full name of the user (gecos field)
2929
* uid - The numeric user id for the user. This is required for uid consistency
3030
across systems.
31+
* password - If a hash is provided then that will be used, but otherwise the
32+
account will be locked
3133
* groups - a list of supplementary groups for the user.
3234
* ssh-key - This should be a list of ssh keys for the user. Each ssh key
3335
should be included directly and should have no newlines.

tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
else users_group}}"
1212
groups="{{item.groups | join(',')}}"
1313
shell={{item.shell if item.shell is defined else users_default_shell}}
14+
password="{{item.password if item.password is defined else '!'}}"
1415
comment="{{item.name}}"
1516
uid="{{item.uid}}"
1617
createhome="{{'yes' if users_create_homedirs else 'no'}}"

0 commit comments

Comments
 (0)