Skip to content

Instantly share code, notes, and snippets.

@jiro4989
Last active August 27, 2019 12:19
Show Gist options
  • Save jiro4989/da556a704b31581243eaaae49f5a146c to your computer and use it in GitHub Desktop.
Save jiro4989/da556a704b31581243eaaae49f5a146c to your computer and use it in GitHub Desktop.
Ansibleがメッセージを出力する時に使用するcowsayを置き換えるスクリプト
#!/bin/bash
# 使い方:
#
# このコマンドを /bin/cowsay
# あるいは/usr/local/bin/cowsayとかに配置して実行権限をつける
shift 3
cmd="$(shuf -en1 "unko.shout" "muscular shout" "edf.say")"
eval $cmd $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment