Skip to content

Commit

Permalink
Fixes geerlingguy#1495: Update Drupal role so composer install can be…
Browse files Browse the repository at this point in the history
… skipped on deploy.
  • Loading branch information
geerlingguy authored and ashabed committed Jan 18, 2018
1 parent 8938688 commit 2b2cb0a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion provisioning/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- src: geerlingguy.daemonize
version: 1.1.1
- src: geerlingguy.drupal
version: 2.3.1
version: 2.4.0
- src: geerlingguy.drupal-console
version: 1.1.0
- src: geerlingguy.drush
Expand Down
4 changes: 4 additions & 0 deletions provisioning/roles/geerlingguy.drupal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Set `drupal_deploy` to `true` and `drupal_build_composer*` to `false` if you wou
- `dir`: The directory into which the repository will be checked out
- `accept_hostkey`: Whether to automatically accept the Git server's hostkey on the first connection.

You can also control whether a `composer install` is run after the git clone is finished using the following variable:

drupal_deploy_composer_install: yes

### Build a project from a Drush Make file

drupal_build_makefile: false
Expand Down
1 change: 1 addition & 0 deletions provisioning/roles/geerlingguy.drupal/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ drupal_deploy_version: master
drupal_deploy_update: true
drupal_deploy_dir: "/var/www/drupal"
drupal_deploy_accept_hostkey: no
drupal_deploy_composer_install: yes

# Set this to 'true' and 'drupal_build_composer*' to 'false' if you would like
# to build a Drupal make file with Drush.
Expand Down
4 changes: 3 additions & 1 deletion provisioning/roles/geerlingguy.drupal/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
composer:
command: install
working_dir: "{{ drupal_deploy_dir }}"
when: drupal_deploy_composer_file.stat.exists == true
when:
- drupal_deploy_composer_file.stat.exists == true
- drupal_deploy_composer_install == true
become: no

0 comments on commit 2b2cb0a

Please sign in to comment.