ideasonpurpose / basic-wordpress-vagrant

A fast, easy to use WordPress Vagrant environment modeled after managed WordPress hosting platforms like WP Engine and Flywheel.
MIT License
25 stars 3 forks source link

Quote problem on the database role? #2

Closed joemaller closed 8 years ago

joemaller commented 8 years ago

https://github.com/ideasonpurpose/basic-wordpress-vagrant/blob/master/ansible/roles/wordpress/tasks/database.yml#L11

ERROR: Syntax Error while loading YAML script, /private/tmp/wpe-ignore/ansible/roles/wordpress/tasks/database.yml
Note: The error may actually appear before this position: line 11, column 85

- name: Found dumpfile
  debug: "msg='Populating database from {{ dumpfiles.stdout_lines | last | relpath(\'/vagrant\')}}'"
                                                                                    ^
We could be wrong, but this one looks like it might be an issue with
missing quotes.  Always quote template expression brackets when they
start a value. For instance:

    with_items:
      - {{ foo }}

Should be written as:

    with_items:
      - "{{ foo }}"
joemaller commented 8 years ago

Either it wasn't reproducible or it was fixed in a4cd58d7aee785e95510bbb21d466afebb4ed6fb