I know this question has been asked multiple times but I didn't find the answer on those other questions.
Here an Image to illustrate my point:
Can you read the blue line without squinting? No? Me neither.
I am running an ansible playbook in full verbose mode and need to read those logs with a playbook of 50+ tasks.
Can anyone explain how can I change those colors?
Questions I looked at where I didn't figure out a solution:
Best Answer
Nope, never have been able to read blue on black (and life is far too short to fiddle with colour customizations in every terminal or console combination I might use) so I disable colors by default. With
xterm
, an.Xdefaults
entry of:does wonders; otherwise, without a means to kill the colors in the terminal, application specific hacks may be necessary; a quick kluge is to use a shell function and pipe the output to
cat
which disconnectsansible
from the terminal and may cause it to not spam colors:Another kluge is to fiddle with the
TERM
, e.g.TERM=vt220 ansible-playbook ...
(this tends to work on older systems, but the color spam alas is present withTERM=vt220
on modern systems and changing theTERM
without knowing what you're getting into is probably a bad idea).However! From some spelunking under the
ansible
sources, ansible is not buggy and does provide anANSIBLE_NOCOLOR=1
environment variable: