summaryrefslogtreecommitdiffstats
path: root/roles/copr_cli
diff options
context:
space:
mode:
Diffstat (limited to 'roles/copr_cli')
-rw-r--r--roles/copr_cli/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/copr_cli/tasks/main.yml b/roles/copr_cli/tasks/main.yml
index f7ef1c26e..f8496199d 100644
--- a/roles/copr_cli/tasks/main.yml
+++ b/roles/copr_cli/tasks/main.yml
@@ -2,3 +2,9 @@
- yum:
name: copr-cli
state: present
+ when: ansible_pkg_mgr == "yum"
+
+- dnf:
+ name: copr-cli
+ state: present
+ when: ansible_pkg_mgr == "dnf"