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

Enhance alias check

parent 00849b92
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,10 @@
drupalRoot='{{ webRoot }}{{ drupal.root|default("") }}'
docRoot='{{ webRoot }}{{ drupal.docroot|default(drupal.root|default("")) }}'
drushAlias='@{{ drushSubkey }}'
drushAliasValidate="'{{ drushAlias }}':"
- set_fact:
drushAlias='@{{ inventory_hostname }}{{ drushSubkey }}'
drushAliasValidate='{{ drushAlias }}'
when: drush_version_main|default('8') == '8'
tags: 'always'
......@@ -268,7 +270,7 @@
chdir: '{{ webRoot }}'
register: drush_status
changed_when: false
when: drushAlias in drush_aliases.stdout_lines
when: drushAliasValidate in drush_aliases.stdout_lines
tags: 'deploy'
- 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