Skip to content
Snippets Groups Projects
Commit 05f4cd0a authored by jurgenhaas's avatar jurgenhaas
Browse files

Separate the two tasks to rebuild cache and reading status in order to get...

Separate the two tasks to rebuild cache and reading status in order to get proper output in drush_status
parent 3244e9ec
No related branches found
No related tags found
No related merge requests found
......@@ -13,16 +13,20 @@
drushAliasValidate: '@{{ inventory_hostname }}{{ drushSubkey }}.{{ drupal_domain.shortname|default("default") }}'
when: drush_version_main|default('8') == '8'
- name: Rebuild Cache
shell: drush -y {{ drushAlias }} cache-rebuild
args:
chdir: '{{ webRoot }}'
changed_when: no
ignore_errors: yes
when: drushAliasValidate in drush_aliases.stdout_lines
- name: Check Drush Status
shell: drush -y {{ drushAlias }} {{ item }}
shell: drush -y {{ drushAlias }} status
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment