From 389c4d25f03c4e9dcfbe85aac05f6ec161596c4c Mon Sep 17 00:00:00 2001 From: Anton Zadvorny Date: Sat, 16 Oct 2021 18:15:57 +0300 Subject: [PATCH] Add ap command --- home/.zsh/cmd/ap.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 home/.zsh/cmd/ap.sh 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 "$@"