geerlingguy/ansible-for-devops

Create Drupal project task is failing with below errors

marvinga opened this issue · 2 comments

I have tried everything and still even installed drush manually and still not able to bypass this error. Please help.

TASK [Create Drupal project.] **************************************************
skipping: [default]

TASK [Add drush to the Drupal site with Composer.] *****************************
skipping: [default]

TASK [Install Drupal.] *********************************************************
fatal: [default]: FAILED! => {"changed": false, "cmd": "vendor/bin/drush si -y '--site-name=Drupal Test' --account-name=admin --account-pass=admin '--db-url=mysql://drupal:********@localhost/drupal' --root=/var/www/drupal/web", "msg": "[Errno 2] No such file or directory: b'vendor/bin/drush'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

Removing the version constraint on drush version to install (11.x) helped completing the provisioning.
Seems some kind of incompatibility, which fails silently during the installation if 11.x is specified

Also bumped into this. As @erkandem mentioned, removing :11.* from line 147 works.

Although simply rerunning vagrant provision still resulted in failures. To resolve it I had to run vagrant destroy followed by vagrant up.