From e61cf7429160f5b0335b793e190ae2a2570d8e2a Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Tue, 11 Jun 2019 16:46:06 +0200 Subject: [PATCH] koji_builder: dnf -> package, with_item changes --- roles/koji_builder/tasks/main.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/roles/koji_builder/tasks/main.yml b/roles/koji_builder/tasks/main.yml index fb7f860e6a..6153da1155 100644 --- a/roles/koji_builder/tasks/main.yml +++ b/roles/koji_builder/tasks/main.yml @@ -63,8 +63,9 @@ - koji_builder - name: add pkgs - package: state=present pkg={{ item }} - with_items: + package: + state: present + name: - koji-builder - koji-builder-plugins - python2-koji @@ -100,7 +101,7 @@ - koji_builder - name: Install arm UEFI firmware package (aarch64 only) - dnf: name=edk2-arm state=present + package: name=edk2-arm state=present tags: - koji_builder when: "ansible_architecture is defined and ansible_architecture == 'aarch64'" @@ -222,18 +223,20 @@ # x86_64 builders run both x86_64 and i686 builds, that requires multilib # version of nosync installed to fully take advantage of nosync - name: special pkgs for the x86_64 builders - package: state=present pkg={{ item }} - with_items: - - nosync.i686 + package: + state: present + name: + - nosync.i686 when: ansible_architecture == 'x86_64' tags: - koji_builder # non-bkernel x86_64 builders run container_build, which needs osbs - name: special pkgs for the x86_64 builders - package: state=present pkg={{ item }} - with_items: - - python3-osbs-client.noarch + package: + state: present + name: + - python3-osbs-client.noarch when: "ansible_architecture == 'x86_64' and not inventory_hostname.startswith('bkernel')" tags: - koji_builder @@ -287,7 +290,7 @@ # https://pagure.io/fedora-infrastructure/issue/6636 - name: install libkcapi to get increased sockets on armv7 - dnf: name=libkcapi enablerepo=updates-testing state=present + package: name=libkcapi enablerepo=updates-testing state=present tags: - koji_builder when: ansible_architecture == 'armv7l'