From a9af50cc3e54389281caa0a353ddf82e10069425 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 2 Jul 2014 18:37:50 +0200 Subject: Don't auto-create home directories when adding system users. Unlike adduser(8), ansible's 'user' module copies skeletal configuration files even for system users (unless called with createhome=no). --- roles/lists/tasks/mlmmj.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/lists') diff --git a/roles/lists/tasks/mlmmj.yml b/roles/lists/tasks/mlmmj.yml index 5944e57..51d779f 100644 --- a/roles/lists/tasks/mlmmj.yml +++ b/roles/lists/tasks/mlmmj.yml @@ -6,6 +6,7 @@ # Weird the debian package doesn't do it by itself... - name: Create a user 'mlmmj' user: name=mlmmj system=yes + createhome=no home=/var/spool/mlmmj shell=/bin/false password=! -- cgit v1.2.3