X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Frun-playbook;h=00658a302e0090673c8e8cb67515accb6738e441;hb=a42d32d88cda8669916bf43a0a96b25549b97576;hp=4fb56e100763034a301a5843e90ccbcbda034305;hpb=230fe6cf89f78fe34ef0c2bd282629ef72a59379;p=ansible.git diff --git a/playbooks/run-playbook b/playbooks/run-playbook index 4fb56e1..00658a3 100755 --- a/playbooks/run-playbook +++ b/playbooks/run-playbook @@ -1,8 +1,12 @@ #! /bin/sh if [ -z "$1" ]; then - echo "Usage: $0 playbook.yml" >&2 + echo "Usage: $0 playbook.yaml [...params...]" >&2 exit 1 fi -ansible-playbook -v "$1" | ${PAGER:-more} +if which less >/dev/null 2>&1; then + LESS="S$LESS" +fi + +ansible-playbook "$@" -v | ${PAGER:-more}