Enjoy playbook runs enhanced by cowsay
Most systems management programs do not have super-cow powers. Apt says it does, but then, when do you get to see the cows? Ansible has a small easter egg that solves this problem.
First off, install cowsay as appropriate for your OS, so it winds up in a known path
yum install cowsay
# apt-get install cowsay
# etc
Now run a playbook. Cows will now announce each new play as they start.
_________________________
< TASK: updating webservers >
-------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
Written by Michael DeHaan
Related protips
2 Responses
Heresy, but if you absolutely don't want the cows on a particular run, set ANSIBLE_NOCOWS
to "nomoo" or 1 or something in your shell's environment, and the cows will go to pasture elsewhere.
over 1 year ago
·
with ANSIBLE_COW_SELECTION
you can change to use any of the files cowsay has, 'random' will randomly pick any of the available ones
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ansible
Authors
Misha Behersky
78.97K
tartansandal
73.31K
Related Tags
#ansible
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#