From c8bd58af6e17f86f8978a85ffc20be2c974a5714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C3=96rnstedt?= Date: Tue, 29 Oct 2019 18:33:47 +0100 Subject: [PATCH] Make homedir creation optional per account. --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 233c687..0af313b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -26,7 +26,7 @@ comment: "{{ item.name if item.name is defined else '' }}" uid: "{{ item.uid | default(omit) }}" home: "{{ item.home | default('/home/' + item.username) }}" - createhome: "{{ 'yes' if users_create_homedirs else 'no' }}" + createhome: "{{ item.create_home | default('yes' if users_create_homedirs else 'no') }}" generate_ssh_key: "{{ item.generate_ssh_key | default(omit) }}" update_password: "{{ item.update_password | default(omit) }}" with_items: "{{ users }}"