Thanks so much! On Monday, November 14, 2016 at 3:01:27 PM UTC-8, Matt Martz wrote: > > On the changelog for 2.2 which you can see at > 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 }}" > > > On Mon, Nov 14, 2016 at 2:55 PM, Art Fewell <[email protected] > <javascript:>> wrote: > >> 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) >> >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/ff008490-1786-4924-95da-0bc1bdacf663%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/ff008490-1786-4924-95da-0bc1bdacf663%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Matt Martz > @sivel > sivel.net >
-- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/53777bf4-07d7-48c1-b1fd-f65df37dcf78%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
