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

Commit 840b63a

Browse files
committed
Fixes #1495: Update Drupal role so composer install can be skipped on deploy.
1 parent 3a49f25 commit 840b63a

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

provisioning/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- src: geerlingguy.daemonize
1919
version: 1.1.1
2020
- src: geerlingguy.drupal
21-
version: 2.3.1
21+
version: 2.4.0
2222
- src: geerlingguy.drupal-console
2323
version: 1.1.0
2424
- src: geerlingguy.drush

provisioning/roles/geerlingguy.drupal/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Set `drupal_deploy` to `true` and `drupal_build_composer*` to `false` if you wou
3737
- `dir`: The directory into which the repository will be checked out
3838
- `accept_hostkey`: Whether to automatically accept the Git server's hostkey on the first connection.
3939

40+
You can also control whether a `composer install` is run after the git clone is finished using the following variable:
41+
42+
drupal_deploy_composer_install: yes
43+
4044
### Build a project from a Drush Make file
4145

4246
drupal_build_makefile: false

provisioning/roles/geerlingguy.drupal/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ drupal_deploy_version: master
77
drupal_deploy_update: true
88
drupal_deploy_dir: "/var/www/drupal"
99
drupal_deploy_accept_hostkey: no
10+
drupal_deploy_composer_install: yes
1011

1112
# Set this to 'true' and 'drupal_build_composer*' to 'false' if you would like
1213
# to build a Drupal make file with Drush.

provisioning/roles/geerlingguy.drupal/tasks/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@
2828
composer:
2929
command: install
3030
working_dir: "{{ drupal_deploy_dir }}"
31-
when: drupal_deploy_composer_file.stat.exists == true
31+
when:
32+
- drupal_deploy_composer_file.stat.exists == true
33+
- drupal_deploy_composer_install == true
3234
become: no

0 commit comments

Comments
 (0)