forked from melihovv/initial-webserver-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml
27 lines (24 loc) · 959 Bytes
/
deploy.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
---
- hosts: all
remote_user: "{{ user }}"
vars_files:
- vars/main.yml
tasks:
- block:
- include: tasks/register_release_variables.yml
- include: tasks/create_new_release_dir.yml
- include: tasks/clone_repo.yml
- include: tasks/mark_release.yml
- include: tasks/set_owner_and_group.yml dir_to_chown="{{ new_release_dir }}"
- include: tasks/set_correct_permissions.yml dir="{{ new_release_dir }}"
- include: tasks/check_that_folder_is_writable.yml dir_to_check="{{ new_release_dir }}/bootstrap/cache"
- include: tasks/link_storage.yml
- include: tasks/install_composer_deps.yml
- include: tasks/link_env.yml
- include: tasks/generate_assets.yml
- include: tasks/optimize_app.yml
- include: tasks/migrate_db.yml
- include: tasks/bless_new_release.yml
- include: tasks/leave_most_10_recent_releases.yml
rescue:
- include: tasks/rollback.yml