2016-08-04 18:50:07 +02:00
|
|
|
---
|
2016-12-16 15:16:49 +01:00
|
|
|
- block:
|
|
|
|
- name: Install a script that downloads and configure a global drush executable
|
|
|
|
template: src=drush-global-setup.sh.j2 dest=/usr/local/bin/drush-global-setup owner=root group=root mode=0700
|
|
|
|
tags: ['drupal', 'drush', 'global_drush' ]
|
|
|
|
|
|
|
|
- name: Setup a global drush executable
|
|
|
|
command: /usr/local/bin/drush-global-setup
|
|
|
|
args:
|
|
|
|
creates: /usr/local/bin/drush
|
|
|
|
tags: ['drupal', 'drush', 'global_drush' ]
|
|
|
|
|
|
|
|
- name: Install drush locally as part of drupal
|
|
|
|
become: True
|
|
|
|
become_user: '{{ item.user }}'
|
|
|
|
composer: command=require arguments=drush/drush:{{ drupal_drush_version }} prefer_dist=yes working_dir={{ item.doc_root }}
|
|
|
|
with_items: '{{ phpfpm_pools }}'
|
|
|
|
|
2016-08-04 18:50:07 +02:00
|
|
|
tags: ['drupal', 'drush' ]
|