From: Oleg Broytman Date: Wed, 10 Jun 2020 17:30:25 +0000 (+0300) Subject: Feat(run-playbook): Force non-folding mode in `less` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=944c528610423484d2a86ada945f87be834521df;p=ansible.git Feat(run-playbook): Force non-folding mode in `less` --- diff --git a/playbooks/run-playbook b/playbooks/run-playbook index a359ade..b77bdd5 100755 --- a/playbooks/run-playbook +++ b/playbooks/run-playbook @@ -5,4 +5,8 @@ if [ -z "$1" ]; then exit 1 fi +if which less >/dev/null 2>&1; then + LESS="S$LESS" +fi + ansible-playbook "$@" -v | ${PAGER:-more}