1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Not for cow lovers: optionally disable cowsay

spaces now cow-compatible
This commit is contained in:
Jan-Piet Mens 2012-10-06 16:56:19 +02:00
parent a1c23af6fc
commit 051f66cf16

View file

@ -32,6 +32,8 @@ if os.path.exists("/usr/bin/cowsay"):
cowsay = "/usr/bin/cowsay" cowsay = "/usr/bin/cowsay"
elif os.path.exists("/usr/games/cowsay"): elif os.path.exists("/usr/games/cowsay"):
cowsay = "/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): def call_callback_module(method_name, *args, **kwargs):