Skip to content

Commit

Permalink
update default home directory
Browse files Browse the repository at this point in the history
Signed-off-by: Jack <[email protected]>
  • Loading branch information
zhan9san committed Oct 29, 2024
1 parent e2d8b74 commit b7739e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/_common/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7739e1

Please sign in to comment.