Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit e705aee

Browse files
authored
Optional-drush-cr-before-import (#728)
1 parent dc7b24e commit e705aee

File tree

1 file changed

+9
-0
lines changed
  • roles/database_apply/database_apply-drupal8/tasks

1 file changed

+9
-0
lines changed

roles/database_apply/database_apply-drupal8/tasks/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@
108108
msg: "{{ _drush_output }}"
109109
when: drupal.drush_verbose_output
110110

111+
- name: Clear cache before config import.
112+
ansible.builtin.include_role:
113+
name: "cache_clear/cache_clear-{{ project_type }}"
114+
with_items: "{{ drupal.sites }}"
115+
loop_control:
116+
loop_var: site
117+
when:
118+
- drupal.clear_cache_before_config_import | default(false)
119+
111120
- name: Import configuration.
112121
ansible.builtin.command:
113122
cmd: "{{ drush_bin }} -l {{ site.folder }} -y {{ site.config_import_command }}"

0 commit comments

Comments
 (0)