Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

squash_actions deprecation warning #218

Closed
sfuerte opened this issue May 2, 2019 · 1 comment
Closed

squash_actions deprecation warning #218

sfuerte opened this issue May 2, 2019 · 1 comment

Comments

@sfuerte
Copy link

sfuerte commented May 2, 2019

getting the following upon running:

...
TASK [dev-sec.os-hardening : remove deprecated or insecure packages | package-01 - package-09] *******************************************************************************************************************
[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: ['{{
 os_security_packages_list }}']` 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: [host1] => (item=[u'xinetd', u'inetd', u'ypserv', u'telnet-server', u'rsh-server', u'prelink'])
...

OS / Environment
Red Hat Enterprise Linux Server release 7.6 (Maipo)

Ansible Version

ansible 2.7.10
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/admap0/.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)]

Role Version

$ ansible-galaxy list | grep dev-sec
- dev-sec.os-hardening, 5.1.0
@rndmh3ro
Copy link
Member

Fixed with release 5.2.0 by #200

rndmh3ro added a commit that referenced this issue Jul 24, 2020
divialth pushed a commit to divialth/ansible-collection-hardening that referenced this issue Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants