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 }}
|
- name: Create the user that will run the springboot app {{ item.name }}
|
||||||
user:
|
user:
|
||||||
name: '{{ item.user }}'
|
name: '{{ item.user }}'
|
||||||
home: '{{ item.install_dir }}'
|
home: '{% if item.user_home is defined %}{{ item.user_home }}{% else %}{{ item.install_dir }}{% endif %}'
|
||||||
createhome: false
|
createhome: '{{ item.createhome | default(false) }}'
|
||||||
shell: '{{ item.user_shell | default(springboot_user_shell) }}'
|
shell: '{{ item.user_shell | default(springboot_user_shell) }}'
|
||||||
system: '{{ item.system_user | default(springboot_system_user) }}'
|
system: '{{ item.system_user | default(springboot_system_user) }}'
|
||||||
loop: '{{ springboot_apps }}'
|
loop: '{{ springboot_apps }}'
|
||||||
|
|
Loading…
Reference in New Issue