oliverdavies.uk-drupal-old/tools/ansible/deploy/after-update-code.yml

25 lines
596 B
YAML
Raw Normal View History

2020-02-07 07:43:17 +00:00
---
- name: Install Composer dependencies
composer:
command: install
working_dir: '{{ ansistrano_release_path.stdout }}'
- name: Generate settings.php file
include_role:
name: opdavies.drupal_settings_files
- name: Import configuration
2020-02-19 00:58:41 +00:00
command: '{{ release_drush_path }} config-import -y'
args:
chdir: '{{ release_web_path }}'
- name: Run database updates
2020-02-19 00:58:41 +00:00
command: '{{ release_drush_path }} updatedb -y'
args:
chdir: '{{ release_web_path }}'
- name: Rebuild cache
2020-02-19 00:58:41 +00:00
command: '{{ release_drush_path }} cache-rebuild'
args:
chdir: '{{ release_web_path }}'