# Problems with Ansible 2.2

**URL:** <https://forum.ansible.com/t/problems-with-ansible-2-2/23022>\
**Category:** Ansible Project\
**Created:** [November 14, 2016, 8:55pm UTC](https://forum.ansible.com/t/problems-with-ansible-2-2/23022 "2016-11-14T20:55:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Art\_Fewell](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Art\_Fewell](https://forum.ansible.com/u/Art_Fewell)\
**Post date:** [November 14, 2016, 8:55pm UTC](https://forum.ansible.com/t/problems-with-ansible-2-2/23022/1 "2016-11-14T20:55:00Z")

</div>

Hi Everyone,

Please forgive any mistakes as I am a noob to this community.

I just tried running an existing ansible solution on a new Ansible 2.2.0.0-1 version, and it is not happy. I have a role setup to install apache that works in previous versions of ansible, but now it doesnt seem to like the format of my vars files, which I have in standard list format.

I havent been found any documents that state what changes I need to make to my existing playbooks to make them compatible with Ansible 2.2, or any older formats that were deprecated in 2.2?

Here are some more specific details, my playbook first runs a task to set a fact called “apache\_packages”, which runs successfully. Next another tasks looks for this “apache\_packages” variable, and can’t find it when I run 2.2, but running 2.1.2 it was working:  
(note: both these screen shots are from the same play, I changed terminal color to increase clarity)

 ![](https://us1.discourse-cdn.com/ansible/original/2X/0/05d102bb1d509182859257ebfe5e2906fcfea7a7.png)

 ![](https://us1.discourse-cdn.com/ansible/original/2X/3/30d0a2999e02013ea0c3945085afc6513101ae17.png)

 ![](https://us1.discourse-cdn.com/ansible/original/2X/b/b408d9ddff58b2924b56f88cbb8fb2067b8738c2.png)

 ![](https://us1.discourse-cdn.com/ansible/original/2X/0/0a0db0a3cdfab2b796c77813dc52e0658307091d.png)

 ![](https://us1.discourse-cdn.com/ansible/original/2X/9/992895a9972dd9597af5b66310fe79dc93088ce8.png)

 ![](https://us1.discourse-cdn.com/ansible/original/2X/e/ee4051e397f5103967b5c5d5bd2aec6f1b522122.png)

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [November 14, 2016, 11:00pm UTC](https://forum.ansible.com/t/problems-with-ansible-2-2/23022/2 "2016-11-14T23:00:35Z")

</div>

On the changelog for 2.2 which you can see at [https://github.com/ansible/ansible/blob/devel/CHANGELOG.md#removed-deprecated](https://github.com/ansible/ansible/blob/devel/CHANGELOG.md#removed-deprecated)

> with\_ ‘bare variable’ handling, now loop items must always be templated {{ }} or they will be considered as plain strings.

The change that needs to happen is that your with\_items should look like:

with\_items: “{{ apache\_packages }}”

> **(attachments)**
>
> ![Auto Generated Inline Image 1.png](https://us1.discourse-cdn.com/ansible/original/2X/0/05d102bb1d509182859257ebfe5e2906fcfea7a7.png)  
> ![Auto Generated Inline Image 4.png](https://us1.discourse-cdn.com/ansible/original/2X/0/0a0db0a3cdfab2b796c77813dc52e0658307091d.png)  
> ![Auto Generated Inline Image 2.png](https://us1.discourse-cdn.com/ansible/original/2X/3/30d0a2999e02013ea0c3945085afc6513101ae17.png)  
> ![Auto Generated Inline Image 5.png](https://us1.discourse-cdn.com/ansible/original/2X/9/992895a9972dd9597af5b66310fe79dc93088ce8.png)  
> ![Auto Generated Inline Image 6.png](https://us1.discourse-cdn.com/ansible/original/2X/e/ee4051e397f5103967b5c5d5bd2aec6f1b522122.png)  
> ![Auto Generated Inline Image 3.png](https://us1.discourse-cdn.com/ansible/original/2X/b/b408d9ddff58b2924b56f88cbb8fb2067b8738c2.png)

---

<div class="post-metadata">

**Author:** ![Art\_Fewell](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Art\_Fewell](https://forum.ansible.com/u/Art_Fewell)\
**Post date:** [November 14, 2016, 11:34pm UTC](https://forum.ansible.com/t/problems-with-ansible-2-2/23022/3 "2016-11-14T23:34:07Z")

</div>

Thanks so much!
