copr: be: avoid dnf warning for loops

[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 `pkg: "{{ item }}"`,
This commit is contained in:
Pavel Raiskup 2019-11-27 11:08:20 +01:00 committed by Pierre-Yves Chibon
parent 2ceeed1654
commit e42e9cc6d7

View file

@ -38,10 +38,11 @@
- prepare_base_image is defined
- name: install copr-builder and other latest packages
dnf: state=latest pkg={{ item }}
with_items:
- copr-builder
- libcurl # temporarily, for rhbz#1690971
dnf: state=latest pkg="{{ packages }}"
vars:
packages:
- copr-builder
- libcurl # temporarily, for rhbz#1690971
# temporary thing, till we have merged:
# https://pagure.io/copr/copr/pull-request/1109