#! /bin/sh if [ -z "$1" ]; then echo "Usage: $0 playbook.yaml [...params...]" >&2 exit 1 fi if which less >/dev/null 2>&1; then LESS="S$LESS" fi ansible-playbook "$@" -v | ${PAGER:-more}