]> git.phdru.name Git - ansible.git/blobdiff - playbooks/run-playbook
Feat(run-playbook): Run any playbook from the command line
[ansible.git] / playbooks / run-playbook
diff --git a/playbooks/run-playbook b/playbooks/run-playbook
new file mode 100755 (executable)
index 0000000..4fb56e1
--- /dev/null
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+if [ -z "$1" ]; then
+   echo "Usage: $0 playbook.yml" >&2
+   exit 1
+fi
+
+ansible-playbook -v "$1" | ${PAGER:-more}