I have Ansible role, for example
--- - name: Deploy app1 include: deploy-app1.yml when: \'deploy_project == \"{{app1}}\"\' - name: Deploy app2 include
Ansible allows you to control its output by using custom callbacks.
In this case you can simply use the skippy callback which will not output anything on a skipped task.
That said, skippy is now deprecated and will be removed in ansible v2.11.
skippy