Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions roles/cache_clear/cache_clear-drupal7/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
- name: Clear Drupal 7 cache.
command:
cmd: "{{ drush_bin }} -l {{ site.folder }} -y cc all"
chdir: "{{ deploy_path }}/{{ webroot }}/sites/{{ site.folder }}"
cmd: "{{ drush_bin }} -l {{ site_drupal.folder }} -y cc all"
chdir: "{{ deploy_path }}/{{ webroot }}/sites/{{ site_drupal.folder }}"
become: "{{ 'no' if www_user == deploy_user else 'yes' }}"
become_user: "{{ www_user }}"
with_items: "{{ drupal.sites }}"
loop_control:
loop_var: site
loop_var: site_drupal
run_once: true
6 changes: 3 additions & 3 deletions roles/cache_clear/cache_clear-drupal8/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
- name: Clear Drupal cache.
ansible.builtin.command:
cmd: "{{ drush_bin }} -l {{ site.folder }} -y cr"
chdir: "{{ deploy_path }}/{{ webroot }}/sites/{{ site.folder }}"
cmd: "{{ drush_bin }} -l {{ site_drupal.folder }} -y cr"
chdir: "{{ deploy_path }}/{{ webroot }}/sites/{{ site_drupal.folder }}"
become: "{{ 'no' if www_user == deploy_user else 'yes' }}"
become_user: "{{ www_user }}"
with_items: "{{ drupal.sites }}"
loop_control:
loop_var: site
loop_var: site_drupal
run_once: true
register: _drush_output

Expand Down