Skip to content

Instantly share code, notes, and snippets.

@iivvoo
Created May 12, 2014 14:42
Show Gist options
  • Save iivvoo/a8f021d72780da40632d to your computer and use it in GitHub Desktop.
Save iivvoo/a8f021d72780da40632d to your computer and use it in GitHub Desktop.
old-style
- name: Run buildout {{buildout}}
command: $venv/bin/buildout -N -c $buildout
chdir=$dest
new-style with {{}}
- name: Run buildout {{buildout}}
command: "{{venv}}/bin/buildout -N -c {{buildout}}"
chdir={{dest}}
results in
ERROR: Syntax Error while loading YAML script, /home/ivo/m3r/projects/RnD/ansible/ansible-conf/roles/uwsgiapp/tasks/main.yml
Note: The error may actually appear before this position: line 41, column 12
command: "{{venv}}/bin/buildout -N -c {{buildout}}"
chdir={{dest}}
^
Fixing it
- name: Run buildout {{buildout}}
command: "{{venv}}/bin/buildout -N -c {{buildout}}"
chdir={{dest}}
results in
ERROR: Syntax Error while loading YAML script, /home/ivo/m3r/projects/RnD/ansible/ansible-conf/roles/uwsgiapp/tasks/main.yml
Note: The error may actually appear before this position: line 41, column 12
command: "{{venv}}/bin/buildout -N -c {{buildout}}"
chdir={{dest}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment