The home directory can differ from the install dir.
This commit is contained in:
parent
dec3f64f6c
commit
3e028b3725
|
@ -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 }}'
|
||||
|
|
Loading…
Reference in New Issue