diff --git a/home/.zsh/cmd/ap.sh b/home/.zsh/cmd/ap.sh new file mode 100755 index 0000000..f504da2 --- /dev/null +++ b/home/.zsh/cmd/ap.sh @@ -0,0 +1,6 @@ +### ANSIBLE +# mnemonic: [A]nsible [P]laybook +# run ansible playbook with more readable output + +echo -n "$@" | grep -q -- "-v" && export ANSIBLE_STDOUT_CALLBACK=yaml +ansible-playbook "$@"