William-Yeh/ansible-fluentd

Ansible 2.7 throws deprecation warning on certain packaging tasks

Opened this issue · 0 comments

When running this role under Ansible 2.7 I'm getting the following deprecation warnings:

TASK [william-yeh.fluentd : install apt-related binaries for Ansible to work] ******************************************
[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: [u'python-software-properties', u
'apt-transport-https']` 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: [server] => (item=[u'python-software-properties', u'apt-transport-https'])

And:

TASK [william-yeh.fluentd : install libcurl and make for compiling plugins] ********************************************
[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: [u'libcurl4-gnutls-dev', u'build-
essential']` 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: [server] => (item=[u'libcurl4-gnutls-dev', u'build-essential'])
TASK [william-yeh.fluentd : install gcc and libcurlXXX for compiling plugins] ******************************************
[DEPRECATION WARNING]: Invoking "yum" 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: [u'gcc', u'libcurl', u'libcurl-
devel']` 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.
skipping: [server] => (item=[])