4

When I run an ansible (v2.9.9) ad-hoc command, the output is colourized. Green for successful resuilts etc. I am building up a bash pipeline, so how can I tell ansible to not colourize the output?

Amandasaurus
  • 31,471
  • 65
  • 192
  • 253

1 Answers1

5

Configure ANSIBLE_NOCOLOR. For example

shell> ANSIBLE_NOCOLOR=True ansible localhost -a "date"
localhost | CHANGED | rc=0 >>
Wed 15 Jul 2020 10:03:04 AM CEST
Vladimir Botka
  • 5,138
  • 8
  • 20