nfaction / ansible-tips-and-tricks

Tips and Tricks for using Ansible
102 stars 17 forks source link

outdated syntax #6

Open leggewie opened 3 years ago

leggewie commented 3 years ago

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 commented 3 years ago

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