Added NO_COLOR as config option (#73105)
This commit is contained in:
parent
995e76c6e3
commit
b1ee1a285a
2 changed files with 7 additions and 1 deletions
2
changelogs/fragments/added_existing_nocolor.yml
Normal file
2
changelogs/fragments/added_existing_nocolor.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- Added NO_COLOR environment var to ansible color configuration, allowing it to integrate with existing convention.
|
|
@ -72,7 +72,11 @@ ANSIBLE_NOCOLOR:
|
||||||
name: Suppress color output
|
name: Suppress color output
|
||||||
default: False
|
default: False
|
||||||
description: This setting allows suppressing colorizing output, which is used to give a better indication of failure and status information.
|
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:
|
ini:
|
||||||
- {key: nocolor, section: defaults}
|
- {key: nocolor, section: defaults}
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
Loading…
Reference in a new issue