ansible-tips-and-tricks icon indicating copy to clipboard operation
ansible-tips-and-tricks copied to clipboard

outdated syntax

Open leggewie opened this issue 3 years ago • 1 comments

https://ansible-tips-and-tricks.readthedocs.io/en/latest/os-dependent-tasks/installing_packages/ has obsolete instructions for ansible_pkg_mgr resulting in:

TASK [install basic packages] ************************************************************* [DEPRECATION WARNING]: Invoking "{{ ansible_pkg_mgr }}" 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', 'tmux', 'mosh'] 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.

leggewie avatar Mar 28 '21 12:03 leggewie

https://serverfault.com/a/649355/574029 has a more modern version

leggewie avatar Mar 28 '21 12:03 leggewie