Add hooks
This commit is contained in:
parent
52f4b906b0
commit
ddaa516e38
8
plays/postdelete/lib/hooks.yml
Normal file
8
plays/postdelete/lib/hooks.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Check if a custom post-delete playbook exists
|
||||
stat:
|
||||
path: "{{ app_config_root }}/plays/postdelete.yml"
|
||||
register: post_delete_yml
|
||||
|
||||
- include: "{{ app_config_root }}/plays/postdelete.yml"
|
||||
when: post_delete_yml.stat.exists
|
@ -5,3 +5,4 @@
|
||||
- include: ../commonlib/vars.yml
|
||||
- include: ./lib/dirs.yml
|
||||
- include: ./lib/database.yml
|
||||
- include: ./lib/hooks.yml
|
||||
|
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
|
@ -7,3 +7,4 @@
|
||||
- include: ./lib/https.yml
|
||||
- include: ./lib/proxy.yml
|
||||
- include: ./lib/nginxd.yml
|
||||
- include: ./lib/hooks.yml
|
||||
|
8
plays/predeploy/lib/hooks.yml
Normal file
8
plays/predeploy/lib/hooks.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Check if a custom pre-deploy playbook exists
|
||||
stat:
|
||||
path: "{{ app_config_root }}/plays/predeploy.yml"
|
||||
register: pre_deploy_yml
|
||||
|
||||
- include: "{{ app_config_root }}/plays/predeploy.yml"
|
||||
when: pre_deploy_yml.stat.exists
|
@ -7,3 +7,4 @@
|
||||
- include: ./lib/database.yml
|
||||
- include: ./lib/volumes.yml
|
||||
- include: ./lib/env.yml
|
||||
- include: ./lib/hooks.yml
|
||||
|
Reference in New Issue
Block a user