diff --git a/roles/_common/tasks/install.yml b/roles/_common/tasks/install.yml index 4f0f4f77f..c4e5a5575 100644 --- a/roles/_common/tasks/install.yml +++ b/roles/_common/tasks/install.yml @@ -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