geerlingguy / ansible-role-drupal

Ansible Role - Drupal
https://galaxy.ansible.com/geerlingguy/drupal/
MIT License
92 stars 51 forks source link

Fix error due to missing quotes in update.yml #41

Closed geerlingguy closed 7 years ago

geerlingguy commented 7 years ago

Testing Drupal VM with --tags=drupal for issue https://github.com/geerlingguy/drupal-vm/issues/1271, I ran into this error message:

TASK [geerlingguy.drupal : include] ************************************************************************************
fatal: [138.197.108.187]: FAILED! => {"failed": true, "reason": "Syntax Error while loading YAML.\n\n\nThe error appears to have been in '/Users/jeff.geerling/Sites/drupalvm-live/vendor/geerlingguy/drupal-vm/provisioning/roles/geerlingguy.drupal/tasks/update.yml': line 3, column 29, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- name: Run database updates.\n  command: {{ drush_path }} updatedb -y\n                            ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes.  Always quote template expression brackets when they\nstart a value. For instance:\n\n    with_items:\n      - {{ foo }}\n\nShould be written as:\n\n    with_items:\n      - \"{{ foo }}\"\n"}

I'm pretty sure it's just a quoting issue.