Add hooks
This commit is contained in:
8
plays/postdeploy/lib/hooks.yml
Normal file
8
plays/postdeploy/lib/hooks.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- 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
|
Reference in New Issue
Block a user