fix(configuration): add pipefail to root password shell pipe

This commit is contained in:
2026-02-20 22:28:54 +01:00
parent ce40468b77
commit 53584b8730

View File

@@ -1,7 +1,10 @@
---
- name: Set root password
ansible.builtin.shell: >-
set -o pipefail &&
echo 'root:{{ system_cfg.root.password | password_hash("sha512") }}' | {{ chroot_command }} chpasswd -e
args:
executable: /bin/bash
register: configuration_root_result
changed_when: configuration_root_result.rc == 0
no_log: true