From e6f534c38029c6a21c78d2624ae8087c1ee67e1f Mon Sep 17 00:00:00 2001 From: Neal Thomas Oakey Date: Wed, 6 Dec 2017 12:28:04 +0100 Subject: [PATCH] Don't create home for system accounts Fixes users `irc` and `systemd-resolve` being changed after reboot, as their home directory is in `/run`. Won't create `/home/{syslog,ntp}` any longer (Ubuntu). --- tasks/user_accounts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/user_accounts.yml b/tasks/user_accounts.yml index e672270c1..91605350c 100644 --- a/tasks/user_accounts.yml +++ b/tasks/user_accounts.yml @@ -40,5 +40,6 @@ name: '{{ item }}' shell: '{{ os_nologin_shell_path }}' password: '*' + createhome: False with_flattened: - '{{ sys_accs_cond | default([]) | difference(os_ignore_users) | list }}'