From 8d7f526df63e8e34764991ce5b120003d6479d0c Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 24 Jul 2012 20:41:24 -0400 Subject: [PATCH] importing/not-importing methods should be colorized --- lib/ansible/callbacks.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index ad88c134368..988f4410bee 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -378,11 +378,13 @@ class PlaybookCallbacks(object): def on_import_for_host(self, host, imported_file): - print "%s: importing %s" % (host, imported_file) + msg = "%s: importing %s" % (host, imported_file) + print stringc(msg, 'blue') def on_not_import_for_host(self, host, missing_file): - print "%s: not importing file: %s" % (host, missing_file) + msg = "%s: not importing file: %s" % (host, missing_file) + print stringc(msg, 'blue') def on_play_start(self, pattern):