From d3a7276de4c989a457c19dca1325dbb2a6b57814 Mon Sep 17 00:00:00 2001 From: clime Date: Thu, 19 Jan 2017 16:01:27 +0100 Subject: [PATCH] copr-frontend: user dnf ansible module instead of yum-deprecated shell command --- roles/copr/frontend/tasks/main.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/roles/copr/frontend/tasks/main.yml b/roles/copr/frontend/tasks/main.yml index 7c291d1671..349e487606 100644 --- a/roles/copr/frontend/tasks/main.yml +++ b/roles/copr/frontend/tasks/main.yml @@ -8,19 +8,17 @@ command: "restorecon -vvRF /var/lib/pgsql" when: pgsql_ls.stdout is defined and 'postgresql_db_t' not in pgsql_ls.stdout -- name: install python2-modulemd - shell: yum-deprecated install -y python2-modulemd || yum install -y python2-modulemd +- name: install copr-frontend and copr-selinux + dnf: state=latest name={{ item }} + with_items: + - copr-frontend + - copr-selinux + tags: + - packages -# BZ 1241507 -- name: install copr-frontend - shell: yum-deprecated install -y copr-frontend || yum install -y copr-frontend -- name: install copr-selinux - shell: yum-deprecated install -y copr-selinux || yum install -y copr-selinux - -- name: install pkgs for copr-frontend +- name: install additional pkgs for copr-frontend dnf: state=present pkg={{ item }} with_items: - - "copr-frontend" - "bash-completion" - "mod_ssl" - redis