update default home directory

Signed-off-by: Jack <jack4zhang@gmail.com>
This commit is contained in:
Jack 2024-10-29 19:12:14 +08:00
parent e2d8b745dc
commit b7739e1010

View file

@ -37,7 +37,7 @@
system: true
shell: "/usr/sbin/nologin"
group: "{{ _common_system_group }}"
home: "{{ _common_config_dir | default('/') }}"
home: "{{ _common_config_dir | default('/') | ternary(_common_config_dir, '/') }}"
create_home: false
become: true
when: _common_system_user not in ansible_facts.getent_passwd