# Quotes and Jinja

**URL:** <https://forum.ansible.com/t/quotes-and-jinja/22250>\
**Category:** Ansible Project\
**Created:** [August 9, 2016, 8:34pm UTC](https://forum.ansible.com/t/quotes-and-jinja/22250 "2016-08-09T20:34:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Smift1](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Post date:** [August 9, 2016, 8:34pm UTC](https://forum.ansible.com/t/quotes-and-jinja/22250/1 "2016-08-09T20:34:03Z")

</div>

We have a task like

&nbsp;&nbsp;- name: install thing and dependencies  
&nbsp;&nbsp;&nbsp;&nbsp;yum: name={{ item }} state=present  
&nbsp;&nbsp;&nbsp;&nbsp;with\_items:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- thing-"{{ thing\_version }}"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- dep1  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- dep2  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- dep3

where thing\_version is sometimes 1.0 (say), and sometimes something else.

This worked fine in Ansible 1.9.4, but in 2.1.1.0, it says

&nbsp;&nbsp;ok: [host-01] =\> (item=[u'thing-"1.0"', u'dep1', u'dep2', u'dep2'])

&nbsp;&nbsp;NO MORE HOSTS LEFT \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Now, my guess is that the thing-"{{ thing\_version }}" syntax is bogus, and  
that's fine, we can fix that -- and in fact when we fix it, it works  
fine... But we were surprised that the yum task said "ok" but then failed  
the run. Is that in fact surprising? Should I make a ticket?

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-Josh (jbs@care.com)

(apologies for the automatic corporate disclaimer that follows)

This email is intended for the person(s) to whom it is addressed and may contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, distribution, copying, or disclosure by any person other than the addressee(s) is strictly prohibited. If you have received this email in error, please notify the sender immediately by return email and delete the message and any attachments from your system.
