From 25304d9e7cc8e8be20094cfac699263e1fe9e809 Mon Sep 17 00:00:00 2001 From: Thomas G Date: Thu, 14 Mar 2024 09:24:35 +0000 Subject: [PATCH] Add playbook to update all packages (dnf) --- update_dnf.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 update_dnf.yml diff --git a/update_dnf.yml b/update_dnf.yml new file mode 100644 index 0000000..a9074f0 --- /dev/null +++ b/update_dnf.yml @@ -0,0 +1,11 @@ +--- +- hosts: localhost + connection: local + tasks: + - name: upgrade all packages + dnf: + name: "*" + state: latest + - name: Autoremove unneeded packages installed as dependencies + dnf: + autoremove: yes