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

Commit

Permalink
Fixes #1495: Update Drupal role so composer install can be skipped on…
Browse files Browse the repository at this point in the history
… deploy.
  • Loading branch information
geerlingguy committed Aug 19, 2017
1 parent 3a49f25 commit 840b63a
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 840b63a

Please sign in to comment.