Update roles/_common/tasks/install.yml

Co-authored-by: gardar <gardar@users.noreply.github.com>
Signed-off-by: Jack <jack4zhang@gmail.com>
This commit is contained in:
Jack 2024-10-29 20:12:09 +08:00 committed by GitHub
parent b7739e1010
commit 5bba79eb9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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