]> git.phdru.name Git - ansible.git/blobdiff - playbooks/run-playbook
Fix(init-system/templates/sources.list): Fix sections order
[ansible.git] / playbooks / run-playbook
index 542791be7fb6c5ded08fd1ec2e49457ac2210f8a..b77bdd5dd0315b1d3706daac7378803ebfaa1ba1 100755 (executable)
@@ -1,8 +1,12 @@
 #! /bin/sh
 
 if [ -z "$1" ]; then
-   echo "Usage: $0 playbook.yml" >&2
+   echo "Usage: $0 playbook.yml [...params...]" >&2
    exit 1
 fi
 
+if which less >/dev/null 2>&1; then
+   LESS="S$LESS"
+fi
+
 ansible-playbook "$@" -v | ${PAGER:-more}