uzy0yw
Last Updated: February 25, 2016
·
4.35K
· mpdehaan
3c1b7e921632632e11d5d2ee59403f5f

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 |
                 ||     ||
Say Thanks
Respond

2 Responses
Add your response

3926
C382a57369a2810344202ca9a1d37992

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 ·
4938
6447d1e730f15f21c305d008c2477f6d

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 ·
Filed Under