I have Ansible role, for example
--- - name: Deploy app1 include: deploy-app1.yml when: \'deploy_project == \"{{app1}}\"\' - name: Deploy app2 include
If you don't mind losing colours you can elide the skipped tasks by piping the output through sed:
ansible-playbook whatever.yml | sed -nr '/^TASK/{h;n;/^skipping:/{n;b};H;x};p'