Skip to content

Ansible: "apt" module and loops

After upgrading Ansible to version 2.8.3, the "apt" module started spitting out deprecation warnings:

TASK [common : basic packages] ***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: "{{ item }}"`, please use `name: ['vim', 'screen', 'rsync']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [hostname] => (item=['vim', 'screen', 'rsync'])

 

 

Continue reading "Ansible: "apt" module and loops"
  • Twitter
  • Bookmark Ansible: "apt" module and loops at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Ansible: "apt" module and loops
  • Bloglines Ansible: "apt" module and loops
  • Technorati Ansible: "apt" module and loops
  • Fark this: Ansible: "apt" module and loops
  • Bookmark Ansible: "apt" module and loops at YahooMyWeb
  • Bookmark Ansible: "apt" module and loops at Furl.net
  • Bookmark Ansible: "apt" module and loops at reddit.com
  • Bookmark Ansible: "apt" module and loops at blinklist.com
  • Bookmark Ansible: "apt" module and loops at Spurl.net
  • Bookmark Ansible: "apt" module and loops at Simpy.com
  • Bookmark Ansible: "apt" module and loops at blogmarks
  • Bookmark Ansible: "apt" module and loops with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca