made deboco's output preserve ansi colors

- as a result, it's much easier to spot changes and errors in the output

work done when working on [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4069]
This commit is contained in:
Guillaume Raffy 2025-05-23 18:27:45 +02:00
parent 2db63e9bd7
commit 332a3946d4
1 changed files with 2 additions and 2 deletions

View File

@ -511,10 +511,10 @@ common_update_machine()
# example to apply just the role rsyslog:
if [ "$only_role" != '' ]
then
debops run "${machine_group}" --limit "${ANS_HOST:-/dev/null}" -t "${only_role}" | tee --append ${report_file_path}
unbuffer debops run "${playbook}" --limit "${ANS_HOST:-/dev/null}" -t "${only_role}" | tee --append ${report_file_path}
debops_exit_code=$?
else
debops run "${machine_group}" --limit "${ANS_HOST:-/dev/null}" | tee --append ${report_file_path}
unbuffer debops run "${playbook}" --limit "${ANS_HOST:-/dev/null}" | tee --append ${report_file_path}
debops_exit_code=$?
fi
echo "return code for debops run site --limit ${ANS_HOST:-/dev/null} : $debops_exit_code" >> "${report_file_path}"