-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcleanup.yml
30 lines (23 loc) · 1.49 KB
/
cleanup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
- name: "Cleanup Dynamic Deployment"
hosts: all
any_errors_fatal: true
vars_files:
- "{{ playbook_dir }}/vars/defaults.yml"
- "{{ app_root_path }}/{{ app_vars_file }}"
tasks:
- include_tasks: "{{ playbook_dir }}/config/tasks/dynamic/cleanup/remove_dns_record.yml"
when: "app_dynamic_deploy is defined and app_dynamic_deploy|bool == true"
- include_tasks: "{{ playbook_dir }}/config/tasks/dynamic/cleanup/remove_folder_structure.yml"
when: "app_dynamic_deploy is defined and app_dynamic_deploy|bool == true"
- include_tasks: "{{ playbook_dir }}/config/tasks/dynamic/cleanup/remove_storage_mounts.yml"
when: "app_dynamic_deploy is defined and app_dynamic_deploy|bool == true"
- include_tasks: "{{ playbook_dir }}/config/tasks/dynamic/cleanup/remove_nginx_configuration.yml"
when: "app_dynamic_deploy is defined and app_dynamic_deploy|bool == true"
- include_tasks: "{{ playbook_dir }}/config/tasks/dynamic/cleanup/remove_cron_entry.yml"
when: "app_add_cron_entry is defined and app_add_cron_entry|bool == true"
- include_tasks: "{{ playbook_dir }}/config/tasks/dynamic/cleanup/remove_supervisor_config.yml"
when: "app_create_supervisor_config is defined and app_create_supervisor_config|bool == true"
- include_tasks: "{{ playbook_dir }}/config/tasks/restart_supervisor.yml"
when: "app_restart_supervisor is defined and app_restart_supervisor|bool == true"
- include_tasks: "{{ playbook_dir }}/config/tasks/copyright.yml"