diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 487da7666f0..33785dfe620 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -200,6 +200,10 @@ def regular_generic_msg(hostname, result, oneline, caption): def banner(msg): if cowsay: + if msg.find(": [") != -1: + msg = msg.replace("[","") + if msg.endswith("]"): + msg = msg[:-1] runcmd = [cowsay,"-W", "60"] if noncow: runcmd.append('-f')