From 944c528610423484d2a86ada945f87be834521df Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 10 Jun 2020 20:30:25 +0300 Subject: [PATCH] Feat(run-playbook): Force non-folding mode in `less` --- playbooks/run-playbook | 4 ++++ 1 file changed, 4 insertions(+) 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} -- 2.39.5