]> git.phdru.name Git - ansible.git/blobdiff - playbooks/run-playbook
Feat(run-playbook): Force non-folding mode in `less`
[ansible.git] / 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}