changeset 18:2271e3210b56

add update-dnf
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Wed, 02 Sep 2020 15:54:19 +0900
parents a3a179e8fac8
children 9ced8fcb39a9
files roles/update-dnf/tasks/main.yml
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/roles/update-dnf/tasks/main.yml	Wed Sep 02 15:54:19 2020 +0900
@@ -0,0 +1,16 @@
+---
+- name: dnf update
+  become: yes
+  dnf:
+    update_cache: yes
+
+- name: dnf upgrade
+  become: yes
+  dnf:
+    name: "*"
+    state: latest
+
+- name: dnf autoremove
+  become: yes
+  dnf:
+    autoremove: yes