- Data failed to compile:
- ----------
- Rendering SLS nginx failed, render error: Undefined jinja variable; line 74 in template
- ---
- [...]
- - require:
- - pkg: nginx
- /etc/nginx/sites-enabled/{{ sitename }}:
- file.symlink:
- - target: /etc/nginx/sites-available/{{ sitename }} <======================
- {% endfor %}
Why is the second sitename instance throwing the error?