@ -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 }}'