]> git.phdru.name Git - ansible.git/blobdiff - playbooks/redhat/update-all-dnf.yml
Feat(RedHat): Add RedHat and redhatoids playbooks and roles
[ansible.git] / playbooks / redhat / update-all-dnf.yml
diff --git a/playbooks/redhat/update-all-dnf.yml b/playbooks/redhat/update-all-dnf.yml
new file mode 100644 (file)
index 0000000..fee790a
--- /dev/null
@@ -0,0 +1,10 @@
+- name: Update RPM systems with dnf
+  hosts: "{{ hosts | default('all') }}"
+  become: yes
+  gather_facts: false
+  tasks:
+    - name: Update system using dnf
+      dnf:
+        name: "*"
+        state: latest
+        update_cache: yes