From 90a01e00e9887f43cf68481efead2f3bc2d215f3 Mon Sep 17 00:00:00 2001 From: Denix Date: Wed, 21 Jul 2021 12:02:27 +0200 Subject: [PATCH 1/3] Update main.yml --- defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/defaults/main.yml b/defaults/main.yml index 7a442d3..497f981 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -12,6 +12,7 @@ solr_user: solr solr_group: solr solr_user_uid: 810 solr_group_gid: 810 +solr_user_shell: /bin/false # start on boot solr_service_enabled: true From 741627a8b7e564fd6d1492164c92fab2cd095b02 Mon Sep 17 00:00:00 2001 From: Denix Date: Wed, 21 Jul 2021 12:07:55 +0200 Subject: [PATCH 2/3] added home and shell for user creation with vars --- tasks/install.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/install.yml b/tasks/install.yml index 7932eb0..7d7cbe7 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -21,7 +21,8 @@ user: name: "{{ solr_user }}" group: "{{ solr_group }}" - home: /bin/false + home: "{{ solr_user_home }}" + shell: "{{ solr_user_shell }}" uid: "{{ solr_user_uid }}" createhome: true system: true From 5e5a347591908c8e654232392555cd41a3004281 Mon Sep 17 00:00:00 2001 From: Denix Date: Wed, 21 Jul 2021 12:10:49 +0200 Subject: [PATCH 3/3] Update install.yml --- tasks/install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install.yml b/tasks/install.yml index 7d7cbe7..21c0ac0 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -21,7 +21,7 @@ user: name: "{{ solr_user }}" group: "{{ solr_group }}" - home: "{{ solr_user_home }}" + home: "{{ solr_home }}" shell: "{{ solr_user_shell }}" uid: "{{ solr_user_uid }}" createhome: true