ansible/ansible — pull request #1248 by mmikulicic (2012-10-06 18:43:20+00:00)
Title: Added a ANSIBLE_FORCE_COLOR env var, which forces the color output

When ansible runs under a scheduler like jenkins, colors won't be enabled.

However there exist a jenkins plugin which knows how to parse ansi colors, but it's just a rendering step, it has no control on how the pty gets emulated.

This is why I believe it's useful to have an environmental variable that can force color output