Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible-builder does not have option to disable console ANSI coloring #716

Open
ssbarnea opened this issue Oct 25, 2024 · 0 comments
Open
Labels
needs_triage New item that needs to be triaged

Comments

@ssbarnea
Copy link
Member

There are good use-cases (especially during testing) where user might want to disable ANSI coloring in console output.

I looked at the codebase and I was not able to find any option to disable the coloring. I would have expected at least one of the following environment variables to function:

  • ANSIBLE_NOCOLOR (ansible)
  • ANSIBLE_FORCE_COLOR (ansible)
  • FORCE_COLOR (universal)
  • NO_COLOR (universal)
  • PY_COLORS (python)

There is some function in https://github.com/ansible/ansible-lint/blob/b1dd55d59eca5129e75be8df604a9268c166f911/src/ansiblelint/__main__.py#L498 that can be used to determine if coloring should be used or not, is very similar with one in core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_triage New item that needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant