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

Enhance alias check

parent 00849b92
Branches
No related tags found
No related merge requests found
...@@ -22,8 +22,10 @@ ...@@ -22,8 +22,10 @@
drupalRoot='{{ webRoot }}{{ drupal.root|default("") }}' drupalRoot='{{ webRoot }}{{ drupal.root|default("") }}'
docRoot='{{ webRoot }}{{ drupal.docroot|default(drupal.root|default("")) }}' docRoot='{{ webRoot }}{{ drupal.docroot|default(drupal.root|default("")) }}'
drushAlias='@{{ drushSubkey }}' drushAlias='@{{ drushSubkey }}'
drushAliasValidate="'{{ drushAlias }}':"
- set_fact: - set_fact:
drushAlias='@{{ inventory_hostname }}{{ drushSubkey }}' drushAlias='@{{ inventory_hostname }}{{ drushSubkey }}'
drushAliasValidate='{{ drushAlias }}'
when: drush_version_main|default('8') == '8' when: drush_version_main|default('8') == '8'
tags: 'always' tags: 'always'
...@@ -268,7 +270,7 @@ ...@@ -268,7 +270,7 @@
chdir: '{{ webRoot }}' chdir: '{{ webRoot }}'
register: drush_status register: drush_status
changed_when: false changed_when: false
when: drushAlias in drush_aliases.stdout_lines when: drushAliasValidate in drush_aliases.stdout_lines
tags: 'deploy' tags: 'deploy'
- name: "Run Post Deploy Tasks" - name: "Run Post Deploy Tasks"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment