Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Always use project specific drush when available
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Nov 16, 2016
1 parent acbaa92 commit eea33ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 0 additions & 5 deletions provisioning/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@
set_fact:
drupal_site_exists: "{{ drupal_site.stat.exists|default(false) }}"

- name: Update drush_path if drush is not available globally.
set_fact:
drush_path: "{{ drupal_composer_install_dir }}/vendor/drush/drush/drush"
when: "'drush' not in installed_extras"

- include: tasks/sshd.yml
- include: tasks/extras.yml
- include: tasks/www.yml
Expand Down
10 changes: 10 additions & 0 deletions provisioning/tasks/install-site.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
---
- name: Check if a project specific Drush binary exists.
stat: "path={{ drupal_composer_install_dir }}/vendor/drush/drush/drush"
register: drush_vendor_bin
ignore_errors: true

- name: Use project specific Drush if available.
set_fact:
drush_path: "{{ drupal_composer_install_dir }}/vendor/drush/drush/drush"
when: drush_vendor_bin.stat.exists

- name: Check if site is already installed.
command: >
{{ drush_path }} status bootstrap
Expand Down

0 comments on commit eea33ae

Please sign in to comment.