From 4ce318dcf19c74cd108c4812fb7029e7c739d4b0 Mon Sep 17 00:00:00 2001 From: nd Date: Fri, 17 May 2019 00:43:44 +0200 Subject: [PATCH] add support for shell and passwords --- tasks/users.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/users.yml b/tasks/users.yml index b3cdfe0..ffa6c78 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -7,6 +7,8 @@ system: true state: present uid: "{{ omit }}" + password: "*" + shell: "/usr/sbin/nologin" - set_fact: user: "{{ defaultuser|combine(item.value|d({}), {'name': item.key} ) }}" @@ -22,3 +24,5 @@ system: "{{ user.system }}" state: "{{ user.state }}" uid: "{{ user.uid|d(omit) }}" + password: "{{ user.password }}" + shell: "{{ user.shell }}"