2020-02-07 07:43:17 +00:00
|
|
|
---
|
|
|
|
- name: Install Composer dependencies
|
|
|
|
composer:
|
|
|
|
command: install
|
|
|
|
working_dir: '{{ ansistrano_release_path.stdout }}'
|
|
|
|
|
2020-05-14 21:21:30 +00:00
|
|
|
- name: Generate front-end assets
|
|
|
|
command: |
|
|
|
|
{{ item.command }}
|
|
|
|
chdir={{ release_theme_path }}
|
|
|
|
creates="{{ item.creates }}"
|
|
|
|
with_items:
|
2020-05-20 00:51:49 +00:00
|
|
|
- command: "{{ release_drush_path }} opdavies:export-body-values-for-theme-purging"
|
|
|
|
creates: "{{ release_theme_path }}/body-field-values.txt"
|
|
|
|
|
2020-05-14 21:21:30 +00:00
|
|
|
- command: npm install
|
|
|
|
creates: "{{ release_theme_path }}/node_modules"
|
|
|
|
|
|
|
|
- command: npm run production
|
|
|
|
creates: "{{ release_theme_path }}/dist"
|
|
|
|
|
2020-05-20 00:51:49 +00:00
|
|
|
- name: Remove files that are no longer needed
|
2020-05-14 21:21:30 +00:00
|
|
|
file:
|
2020-05-20 00:51:49 +00:00
|
|
|
path: "{{ release_theme_path }}/{{ item }}"
|
2020-05-14 21:21:30 +00:00
|
|
|
state: absent
|
2020-05-20 00:51:49 +00:00
|
|
|
with_items:
|
|
|
|
- body-field-values.txt
|
|
|
|
- node_modules
|
2020-05-14 21:21:30 +00:00
|
|
|
|
2020-02-07 07:43:17 +00:00
|
|
|
- name: Generate settings.php file
|
|
|
|
include_role:
|
2020-02-19 00:55:32 +00:00
|
|
|
name: opdavies.drupal_settings_files
|
2020-02-08 00:24:26 +00:00
|
|
|
|
|
|
|
- name: Import configuration
|
2020-02-19 00:58:41 +00:00
|
|
|
command: '{{ release_drush_path }} config-import -y'
|
|
|
|
args:
|
|
|
|
chdir: '{{ release_web_path }}'
|
2020-02-08 00:24:26 +00:00
|
|
|
|
|
|
|
- name: Run database updates
|
2020-02-19 00:58:41 +00:00
|
|
|
command: '{{ release_drush_path }} updatedb -y'
|
|
|
|
args:
|
|
|
|
chdir: '{{ release_web_path }}'
|
2020-02-08 00:24:26 +00:00
|
|
|
|
|
|
|
- name: Rebuild cache
|
2020-02-19 00:58:41 +00:00
|
|
|
command: '{{ release_drush_path }} cache-rebuild'
|
|
|
|
args:
|
|
|
|
chdir: '{{ release_web_path }}'
|