fix(configuration): use full path for chpasswd in chroot

This commit is contained in:
2026-02-21 05:03:36 +01:00
parent 73ea7a177b
commit cb46a6989f

View File

@@ -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