`with_items` is not deprecated for package manager modules either. What is deprecated is "squash actions".
More info can be found at https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.7.html#using-a-loop-on-a-package-module-via-squash-actions Before, when using `with_items` on a package manager task, ansible would effectively remove the loop, and squash the items to call the module only 1 time, and not actually loop. That specific squashing functionality will be removed in a future version as indicated by the warning and in the docs link I provide. On Tue, Dec 18, 2018 at 3:29 PM Willard Dennis <[email protected]> wrote: > Ah, I see you are correct - I guess I was assuming that all "with_items" > loops had to be re-written... I was getting "DEPRECIATION WARNING" outputs > for all the "with_items" lists I was using with the 'apt' module. So, > "with_items" is not deprecated across the board? Why was it deprecated for > the package manager modules? > > > On Tuesday, December 18, 2018 at 4:23:15 PM UTC-5, Matt Martz wrote: >> >> I don't know what the deprecation warning was that you were experiencing, >> but I doubt it was for that task. It was likely for a package manager >> task, and not for the copy module. >> >> There should be no deprecation for the task you provide in this email. >> >> -- >> 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/f96f39e3-6c40-4073-b894-aceedd87d8f8%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/f96f39e3-6c40-4073-b894-aceedd87d8f8%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/CAD8N0v-xAPq803DKb8JdbKftu%2BvdO33QuCwNXQCOpSTT9Cb2sQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
