From 72e2263f5c6687c5edb5080d0eb428cd4a305076 Mon Sep 17 00:00:00 2001 From: Sandwich Date: Sat, 21 Feb 2026 05:03:36 +0100 Subject: [PATCH] fix(configuration): use full path for chpasswd in chroot --- roles/configuration/tasks/users.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/configuration/tasks/users.yml b/roles/configuration/tasks/users.yml index 0887e33..f959392 100644 --- a/roles/configuration/tasks/users.yml +++ b/roles/configuration/tasks/users.yml @@ -2,7 +2,7 @@ - name: Set root password ansible.builtin.shell: >- set -o pipefail && - echo 'root:{{ system_cfg.root.password | password_hash("sha512") }}' | {{ chroot_command }} chpasswd -e + echo 'root:{{ system_cfg.root.password | password_hash("sha512") }}' | {{ chroot_command }} /usr/sbin/chpasswd -e args: executable: /bin/bash register: configuration_root_result