From 3244e9ecf4b23be7198c790c5e4f712c9edea4af Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Tue, 26 Nov 2019 18:41:55 +0100 Subject: [PATCH] Rebuild cache before checking site status in case that some constructors have been updated --- tasks/deploy/post-tasks.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/deploy/post-tasks.yml b/tasks/deploy/post-tasks.yml index a8bf888..f6f1bc5 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 -- GitLab