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.yml7
1 files changed, 1 insertions, 6 deletions
diff --git a/roles/os_update_latest/tasks/main.yml b/roles/os_update_latest/tasks/main.yml
index 40eec8d35..2532059c0 100644
--- a/roles/os_update_latest/tasks/main.yml
+++ b/roles/os_update_latest/tasks/main.yml
@@ -1,8 +1,3 @@
---
- 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"
+ action: "{{ ansible_pkg_mgr }} name=* state=latest" \ No newline at end of file