Added NO_COLOR as config option (#73105)

This commit is contained in:
Brian Coca 2021-01-07 15:00:31 -05:00 committed by GitHub
parent 995e76c6e3
commit b1ee1a285a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- Added NO_COLOR environment var to ansible color configuration, allowing it to integrate with existing convention.

View file

@ -72,7 +72,11 @@ ANSIBLE_NOCOLOR:
name: Suppress color output
default: False
description: This setting allows suppressing colorizing output, which is used to give a better indication of failure and status information.
env: [{name: ANSIBLE_NOCOLOR}]
env:
- name: ANSIBLE_NOCOLOR
# this is generic convention for CLI programs
- name: NO_COLOR
version_added: '2.11'
ini:
- {key: nocolor, section: defaults}
type: boolean