Ansible deprecation warning - squash_actions
sfuerte opened this issue · 1 comments
sfuerte commented
Getting a deprecation warning when running with docker_compose
enabled:
[DEPRECATION WARNING]: Invoking "pip" 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: ['{{
_docker_additional_packages_pip }}']` 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.
Environment
# ansible --version
ansible 2.7.10
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Mar 26 2019, 22:13:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
# ansible-galaxy list | grep docker
- haxorof.docker_ce, 2.3.0
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)
haxorof commented
Thanks for reporting the deprecation warning. I try to keep this role compatible with the lowest supported Ansible version which is 2.5 right now so I keep track on this page when they drop support. https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#release-status
Cheers!