summaryrefslogtreecommitdiffstats
path: root/roles/os_update_latest
diff options
context:
space:
mode:
Diffstat (limited to 'roles/os_update_latest')
-rw-r--r--roles/os_update_latest/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/os_update_latest/tasks/main.yml b/roles/os_update_latest/tasks/main.yml
index 4a2c3d47a..40eec8d35 100644
--- a/roles/os_update_latest/tasks/main.yml
+++ b/roles/os_update_latest/tasks/main.yml
@@ -1,3 +1,8 @@
---
- name: Update all packages
yum: name=* state=latest
+ when: ansible_pkg_mgr == "yum"
+
+- name: Update all packages
+ dnf: name=* state=latest
+ when: ansible_pkg_mgr == "dnf"