--- - name: Check if a custom post-deploy playbook exists stat: path: "{{ app_config_root }}/plays/postdeploy.yml" register: post_deploy_yml - include: "{{ app_config_root }}/plays/postdeploy.yml" when: post_deploy_yml.stat.exists