diff --git a/tasks/main.yml b/tasks/main.yml index c7a8584..4e7ecf1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,8 +4,8 @@ - name: Create the user that will run the springboot app {{ item.name }} user: name: '{{ item.user }}' - home: '{{ item.install_dir }}' - createhome: false + home: '{% if item.user_home is defined %}{{ item.user_home }}{% else %}{{ item.install_dir }}{% endif %}' + createhome: '{{ item.createhome | default(false) }}' shell: '{{ item.user_shell | default(springboot_user_shell) }}' system: '{{ item.system_user | default(springboot_system_user) }}' loop: '{{ springboot_apps }}'