diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-05-31 23:17:17 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:54:02 +0200 |
commit | be2733485e51024e3274c36cf4ecd38418c3d610 (patch) | |
tree | c7f017498214258906e2be16f39ea329a9ab5edc /roles/IMAP-proxy/tasks | |
parent | acb068b4a5af0654d21c2830655b7c6156a2b845 (diff) |
Prefer '/usr/sbin/nologin' over '/bin/false' for system users.
Diffstat (limited to 'roles/IMAP-proxy/tasks')
-rw-r--r-- | roles/IMAP-proxy/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/IMAP-proxy/tasks/main.yml b/roles/IMAP-proxy/tasks/main.yml index 2ddba96..7773cb3 100644 --- a/roles/IMAP-proxy/tasks/main.yml +++ b/roles/IMAP-proxy/tasks/main.yml @@ -1,32 +1,32 @@ - name: Install Dovecot #apt: pkg={{ item }} default_release={{ ansible_lsb.codename }}-backports apt: pkg={{ item }} with_items: - dovecot-core - dovecot-imapd - name: Create a user 'imapproxy' user: name=imapproxy system=yes createhome=no home=/home/imapproxy - shell=/bin/false + shell=/usr/sbin/nologin password=! state=present - name: Create a home directory for user 'imapproxy' file: path=/home/imapproxy state=directory owner=imapproxy group=imapproxy mode=0700 - name: Configure Dovecot copy: src=etc/dovecot/conf.d/{{ item }} dest=/etc/dovecot/conf.d/{{ item }} owner=root group=root mode=0644 register: r with_items: - 10-auth.conf - 10-logging.conf - 10-mail.conf - 10-master.conf |