How can I hide skipped tasks output in Ansible

后端 未结 5 2152
你的背包
你的背包 2020-12-30 23:32

I have Ansible role, for example

---
- name: Deploy app1
  include: deploy-app1.yml
  when: \'deploy_project == \"{{app1}}\"\'

- name: Deploy app2
  include         


        
5条回答
  •  Happy的楠姐
    2020-12-31 00:04

    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.

提交回复
热议问题