mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-26 11:36:10 +08:00
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:
@@ -149,18 +149,14 @@
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: dist pkgs to remove (dnf)
|
||||
dnf: state=absent name={{ item }}
|
||||
with_items:
|
||||
- "{{ base_pkgs_erase }}"
|
||||
dnf: state=absent name=["{{ base_pkgs_erase }}"]
|
||||
tags:
|
||||
- packages
|
||||
- base
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
|
||||
- name: dist pkgs to install (dnf)
|
||||
dnf: state=present name={{ item }}
|
||||
with_items:
|
||||
- "{{ base_pkgs_inst }}"
|
||||
dnf: state=present name=["{{ base_pkgs_inst }}"]
|
||||
tags:
|
||||
- packages
|
||||
- base
|
||||
|
||||
Reference in New Issue
Block a user