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:
parent
2db63e9bd7
commit
332a3946d4
|
@ -511,10 +511,10 @@ common_update_machine()
|
||||||
# example to apply just the role rsyslog:
|
# example to apply just the role rsyslog:
|
||||||
if [ "$only_role" != '' ]
|
if [ "$only_role" != '' ]
|
||||||
then
|
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=$?
|
debops_exit_code=$?
|
||||||
else
|
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=$?
|
debops_exit_code=$?
|
||||||
fi
|
fi
|
||||||
echo "return code for debops run site --limit ${ANS_HOST:-/dev/null} : $debops_exit_code" >> "${report_file_path}"
|
echo "return code for debops run site --limit ${ANS_HOST:-/dev/null} : $debops_exit_code" >> "${report_file_path}"
|
||||||
|
|
Loading…
Reference in New Issue