The home directory can differ from the install dir.

master
Andrea Dell'Amico 2 years ago
parent dec3f64f6c
commit 3e028b3725
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF

@ -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…
Cancel
Save