diff --git a/roles/_init/tasks/drupal8.yml b/roles/_init/tasks/drupal8.yml index 478b4426..19e7204d 100644 --- a/roles/_init/tasks/drupal8.yml +++ b/roles/_init/tasks/drupal8.yml @@ -6,3 +6,9 @@ - name: Define path to drush for currently live build. set_fact: drush_live_bin: "{{ drush_live_bin | default('{{ live_symlink_dest }}/vendor/bin/drush') }}" + +- name: Override path to drush_bin on the cleanup step. + set_fact: + drush_bin: "{{ drush_live_bin }}" + when: + - deploy_operation == 'cleanup'