From 051f66cf16fb9f5f7e10376790e833fed24bf54c Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Sat, 6 Oct 2012 16:56:19 +0200 Subject: [PATCH] Not for cow lovers: optionally disable cowsay spaces now cow-compatible --- lib/ansible/callbacks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 36304e528f..0ac6961435 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -32,6 +32,8 @@ if os.path.exists("/usr/bin/cowsay"): cowsay = "/usr/bin/cowsay" elif os.path.exists("/usr/games/cowsay"): cowsay = "/usr/games/cowsay" +if os.getenv("ANSIBLE_NOCOWS") is not None: + cowsay = None def call_callback_module(method_name, *args, **kwargs):