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 diff --git a/tasks/install.yml b/tasks/install.yml index 7932eb0..21c0ac0 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_home }}" + shell: "{{ solr_user_shell }}" uid: "{{ solr_user_uid }}" createhome: true system: true