Added a ANSIBLE_FORCE_COLOR env var, which forces the color output no matter what ncurses says.
This commit is contained in:
parent
a1c23af6fc
commit
cc82e7dd06
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@ else:
|
||||||
# curses returns an error (e.g. could not find terminal)
|
# curses returns an error (e.g. could not find terminal)
|
||||||
ANSIBLE_COLOR=False
|
ANSIBLE_COLOR=False
|
||||||
|
|
||||||
|
if os.getenv("ANSIBLE_FORCE_COLOR") is not None:
|
||||||
|
ANSIBLE_COLOR=True
|
||||||
|
|
||||||
# --- begin "pretty"
|
# --- begin "pretty"
|
||||||
#
|
#
|
||||||
# pretty - A miniature library that provides a Python print and stdout
|
# pretty - A miniature library that provides a Python print and stdout
|
||||||
|
|
Loading…
Reference in a new issue