diff --git a/tasks/deploy/post-tasks.yml b/tasks/deploy/post-tasks.yml index a8bf888c59cfcf4ee31fc80467f82c0e15b2a34e..f6f1bc597f323814d5049b8120d14927d4b54f55 100644 --- a/tasks/deploy/post-tasks.yml +++ b/tasks/deploy/post-tasks.yml @@ -14,11 +14,15 @@ when: drush_version_main|default('8') == '8' - name: Check Drush Status - shell: drush -y {{ drushAlias }} status + shell: drush -y {{ drushAlias }} {{ item }} args: chdir: '{{ webRoot }}' + with_items: + - cache-rebuild + - status register: drush_status changed_when: no + ignore_errors: yes when: drushAliasValidate in drush_aliases.stdout_lines - name: Run Post Deploy Tasks