Add hooks

This commit is contained in:
Luke Murphy 2020-04-14 12:34:09 +02:00
parent 52f4b906b0
commit ddaa516e38
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
6 changed files with 27 additions and 0 deletions

View 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

View File

@ -5,3 +5,4 @@
- include: ../commonlib/vars.yml
- include: ./lib/dirs.yml
- include: ./lib/database.yml
- include: ./lib/hooks.yml

View 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

View File

@ -7,3 +7,4 @@
- include: ./lib/https.yml
- include: ./lib/proxy.yml
- include: ./lib/nginxd.yml
- include: ./lib/hooks.yml

View 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

View File

@ -7,3 +7,4 @@
- include: ./lib/database.yml
- include: ./lib/volumes.yml
- include: ./lib/env.yml
- include: ./lib/hooks.yml