42 lines
1 KiB
YAML
42 lines
1 KiB
YAML
---
|
|
- name: Install Composer dependencies
|
|
composer:
|
|
command: install
|
|
working_dir: '{{ ansistrano_release_path.stdout }}'
|
|
|
|
- name: Generate front-end assets
|
|
command: |
|
|
{{ item.command }}
|
|
chdir={{ release_theme_path }}
|
|
creates="{{ item.creates }}"
|
|
with_items:
|
|
- command: npm install
|
|
creates: "{{ release_theme_path }}/node_modules"
|
|
|
|
- command: npm run production
|
|
creates: "{{ release_theme_path }}/dist"
|
|
|
|
- name: Remove node_modules as they are no longer needed
|
|
file:
|
|
path: "{{ release_theme_path }}/node_modules"
|
|
state: absent
|
|
|
|
- name: Generate settings.php file
|
|
include_role:
|
|
name: opdavies.drupal_settings_files
|
|
|
|
- name: Import configuration
|
|
command: '{{ release_drush_path }} config-import -y'
|
|
args:
|
|
chdir: '{{ release_web_path }}'
|
|
|
|
- name: Run database updates
|
|
command: '{{ release_drush_path }} updatedb -y'
|
|
args:
|
|
chdir: '{{ release_web_path }}'
|
|
|
|
- name: Rebuild cache
|
|
command: '{{ release_drush_path }} cache-rebuild'
|
|
args:
|
|
chdir: '{{ release_web_path }}'
|