Skip to content
Snippets Groups Projects
Commit 4261ffe8 authored by jurgenhaas's avatar jurgenhaas
Browse files

Run post deploy tasks only if site is really ready

parent c7e9c3bb
Branches
No related tags found
No related merge requests found
......@@ -204,8 +204,15 @@
changed_when: false
tags: 'deploy'
- name: "Check Drush Status"
shell: drush @{{ inventory_hostname }}{{ drushSubkey }} status
register: drush_status
changed_when: false
when: "'@{{ inventory_hostname }}{{ drushSubkey }}' in drush_aliases.stdout_lines"
tags: 'deploy'
- name: "Run Post Deploy Tasks"
shell: drush -y @{{ inventory_hostname }}{{ drushSubkey }} {{ item }}
with_items: '{{ drupal_post_deploy_tasks[drupal.version|default("d7")] }}'
when: "'@{{ inventory_hostname }}{{ drushSubkey }}' in drush_aliases.stdout_lines"
when: drush_status is defined and 'Successful' in drush_status.stdout_lines
tags: 'deploy'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment