diff --git a/changelogs/fragments/added_existing_nocolor.yml b/changelogs/fragments/added_existing_nocolor.yml new file mode 100644 index 00000000000..481e0f323c9 --- /dev/null +++ b/changelogs/fragments/added_existing_nocolor.yml @@ -0,0 +1,2 @@ +minor_changes: + - Added NO_COLOR environment var to ansible color configuration, allowing it to integrate with existing convention. diff --git a/lib/ansible/config/base.yml b/lib/ansible/config/base.yml index 501492a6fb2..7f36be41df8 100644 --- a/lib/ansible/config/base.yml +++ b/lib/ansible/config/base.yml @@ -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