summaryrefslogtreecommitdiffstats
path: root/roles/lists/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-05-31 23:17:17 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:54:02 +0200
commitbe2733485e51024e3274c36cf4ecd38418c3d610 (patch)
treec7f017498214258906e2be16f39ea329a9ab5edc /roles/lists/tasks
parentacb068b4a5af0654d21c2830655b7c6156a2b845 (diff)
Prefer '/usr/sbin/nologin' over '/bin/false' for system users.
Diffstat (limited to 'roles/lists/tasks')
-rw-r--r--roles/lists/tasks/mlmmj.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lists/tasks/mlmmj.yml b/roles/lists/tasks/mlmmj.yml
index 51d779f..e5e029f 100644
--- a/roles/lists/tasks/mlmmj.yml
+++ b/roles/lists/tasks/mlmmj.yml
@@ -1,31 +1,31 @@
- name: Install MLMMJ
apt: pkg={{ item }}
with_items:
- mlmmj
# 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
+ shell=/usr/sbin/nologin
password=!
state=present
- name: Add 'www-data' to the group 'mlmmj'
user: name=www-data groups=mlmmj append=yes
- name: Create a home directory for user 'mlmmj'
file: path=/var/spool/mlmmj
state=directory
owner=mlmmj group=mlmmj
mode=0700
- name: Create /var/lib/mlmmj
file: path=/var/lib/mlmmj
state=directory
owner=mlmmj group=mlmmj
mode=0750
- name: Auto-maintain mlmmj's spool directory
copy: src=etc/cron.d/mlmmj