mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Make ANSIBLE_NOCOWS configurable
nocows = 1 in ansible.cfg or old environment variable ANSIBLE_NOCOWS=1 add to ansible.cfg example
This commit is contained in:
@@ -23,9 +23,10 @@ import subprocess
|
||||
import random
|
||||
import fnmatch
|
||||
from ansible.color import stringc
|
||||
import ansible.constants as C
|
||||
|
||||
cowsay = None
|
||||
if os.getenv("ANSIBLE_NOCOWS") is not None:
|
||||
if C.ANSIBLE_NOCOWS is not None:
|
||||
cowsay = None
|
||||
elif os.path.exists("/usr/bin/cowsay"):
|
||||
cowsay = "/usr/bin/cowsay"
|
||||
|
||||
Reference in New Issue
Block a user