From aaa3ec383292daee5001e5ae73aa63782cba38b7 Mon Sep 17 00:00:00 2001 From: Hannes Fuchs Date: Mon, 28 Nov 2022 15:44:58 +0100 Subject: [PATCH] Remove home parameter in user task MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes regression introduced in 835faa8. Changing the users home on existing installations will result in failing the user task with: ``` usermod: user promtail is currently used by process… ``` Since promtail is already running on an existing installation the promtail users home can't be changed without stopping the processes of the user. Omitting the home attribute will not touch the home of existing promtail users. On new installations it will be set to `/home/{{ promtail_system_user }}` (`/home/promtail`). Signed-off-by: Hannes Fuchs --- tasks/install.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/tasks/install.yml b/tasks/install.yml index 46ae823..f95033c 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -21,7 +21,6 @@ shell: /usr/sbin/nologin system: True createhome: False - home: "{{ promtail_install_dir }}" when: promtail_system_user != "root" - name: Ensure /usr/local/bin exists