Invoking "dnf" only once while using a loop via squash_actions is deprecated.
addressing warning: [DEPRECATION WARNING]: Invoking "dnf" 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'policycoreutils-python-utils']` 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.
This commit is contained in:
parent
1bbd40217e
commit
6fd1dd674a
1 changed files with 1 additions and 3 deletions
|
@ -14,10 +14,8 @@
|
|||
- selinux
|
||||
|
||||
- name: ensure packages required for semanage are installed (dnf)
|
||||
dnf: name={{ item }} state=present
|
||||
dnf: name=['policycoreutils-python-utils'] state=present
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
with_items:
|
||||
- policycoreutils-python-utils
|
||||
tags:
|
||||
- selinux
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue