Last Updated: February 25, 2016
·
9.699K
· mpdehaan

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 |
                 ||     ||

2 Responses
Add your response

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 ·