Add Drush tasks

This commit is contained in:
Oliver Davies 2019-01-23 14:00:32 +00:00
parent 62a9b204a0
commit b402df87af
4 changed files with 15 additions and 4 deletions

View file

@ -14,7 +14,12 @@
ansistrano_deploy_to: "{{ app_project_root }}"
ansistrano_keep_releases: 5
ansistrano_after_symlink_shared_tasks_file: "{{ playbook_dir }}/deploy/after-symlink-shared.yml"
ansistrano_after_symlink_tasks_file: "{{ playbook_dir }}/deploy/after-symlink.yml"
ansistrano_after_update_code_tasks_file: "{{ playbook_dir }}/deploy/after-update-code.yml"
ansistrano_shared_paths:
- "{{ app_project_subdir }}/sites/default/files"
ansistrano_shared_files:
- "{{ app_project_subdir }}/sites/default/settings.php"
release_web_path: "{{ ansistrano_release_path.stdout }}/web"
release_drush_path: "{{ ansistrano_release_path.stdout }}/vendor/bin/drush"

View file

@ -1,5 +1,3 @@
---
- name: Install Composer dependencies
composer:
command: install
working_dir: '{{ ansistrano_release_path.stdout }}'
- name: Run database updates
command: '{{ release_drush_path }} --root {{ release_web_path }} updatedb'

View file

@ -0,0 +1,3 @@
---
- name: Clear Drupal cache
command: '{{ release_drush_path }} --root {{ release_web_path }} cache-rebuild'

View file

@ -0,0 +1,5 @@
---
- name: Install Composer dependencies
composer:
command: install
working_dir: '{{ ansistrano_release_path.stdout }}'