cowsay for BSD!

Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
pull/1334/head
Brian Coca 12 years ago
parent 036f853d42
commit e98153d26d

@ -28,12 +28,13 @@ callbacks = utils.import_plugins(os.path.join(dirname, 'callback_plugins'))
callbacks = [ c.CallbackModule() for c in callbacks.values() ]
cowsay = None
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
elif os.path.exists("/usr/games/cowsay"):
cowsay = "/usr/games/cowsay"
elif os.path.exists("/usr/local/bin/cowsay"):
# BSD path for cowsay
cowsay = "/usr/local/bin/cowsay"
def call_callback_module(method_name, *args, **kwargs):

Loading…
Cancel
Save