]> git.phdru.name Git - ansible.git/commitdiff
Feat(run-playbook): Force non-folding mode in `less`
authorOleg Broytman <phd@phdru.name>
Wed, 10 Jun 2020 17:30:25 +0000 (20:30 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 10 Jun 2020 17:30:25 +0000 (20:30 +0300)
playbooks/run-playbook

index a359ade258b5c95c1306e7845517683cb534b782..b77bdd5dd0315b1d3706daac7378803ebfaa1ba1 100755 (executable)
@@ -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}