oliverdavies.uk-drupal-old/tools/ansible/deploy/after-update-code.yml
Oliver Davies e9baad51d8 Use Ansible Galaxy for settings role
Now that the Drupal settings role is on Ansible Galaxy, it can be added as a requirement and installed from there rather than having a local copy in the codebase.

Fixes #15
2020-02-19 00:55:32 +00:00

19 lines
551 B
YAML

---
- 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
command: '{{ release_drush_path }} config-import -y chdir={{ release_web_path }}'
- name: Run database updates
command: '{{ release_drush_path }} updatedb -y chdir={{ release_web_path }}'
- name: Rebuild cache
command: '{{ release_drush_path }} cache-rebuild chdir={{ release_web_path }}'