]> git.phdru.name Git - ansible.git/commitdiff
Feat(run-playbook): Redirect stderr to stdout
authorOleg Broytman <phd@phdru.name>
Fri, 2 Jan 2026 15:18:38 +0000 (18:18 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 2 Jan 2026 15:18:38 +0000 (18:18 +0300)
Do not distort the screen and allow `less` to scroll.
Do not hide errors behind the pager.

playbooks/run-playbook

index 00658a302e0090673c8e8cb67515accb6738e441..61984f7802cf9c396a6e7f8284a57e8d401785b8 100755 (executable)
@@ -9,4 +9,4 @@ if which less >/dev/null 2>&1; then
    LESS="S$LESS"
 fi
 
-ansible-playbook "$@" -v | ${PAGER:-more}
+ansible-playbook "$@" -v 2>&1 | ${PAGER:-more}