summaryrefslogtreecommitdiff
path: root/lib/ansible/utils/display.py
diff options
context:
space:
mode:
authorMatt Bachmann <bachmann.matt@gmail.com>2017-12-03 14:33:18 -0500
committerBrian Coca <bcoca@users.noreply.github.com>2017-12-19 15:39:38 -0500
commitf64b276f6ab2cc5bc85f7ad929aaca59a9e6e53e (patch)
treee1edd829063e5937ef967bae5e61501b5818894f /lib/ansible/utils/display.py
parent96335b12bb2a364927be59f78f88f7263f732db1 (diff)
downloadansible-f64b276f6ab2cc5bc85f7ad929aaca59a9e6e53e.tar.gz
Add option allowing the user to specify a custom cowpath
This allows the user to use custom cowsay implementations without shadowing common cowsay paths
Diffstat (limited to 'lib/ansible/utils/display.py')
-rw-r--r--lib/ansible/utils/display.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ansible/utils/display.py b/lib/ansible/utils/display.py
index d40d8dc2db..593644ded4 100644
--- a/lib/ansible/utils/display.py
+++ b/lib/ansible/utils/display.py
@@ -98,7 +98,12 @@ class Display:
self._set_column_width()
def set_cowsay_info(self):
- if not C.ANSIBLE_NOCOWS:
+ if C.ANSIBLE_NOCOWS:
+ return
+
+ if C.ANSIBLE_COWPATH:
+ self.b_cowsay = C.ANSIBLE_COWPATH
+ else:
for b_cow_path in b_COW_PATHS:
if os.path.exists(b_cow_path):
self.b_cowsay = b_cow_path