From 9612aa0dc8c1047b58212fd288a28f83ba594bfa Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 20 Jul 2025 19:00:00 +0200 Subject: [PATCH] Add update.yml --- update.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 update.yml diff --git a/update.yml b/update.yml new file mode 100644 index 0000000..8f31e31 --- /dev/null +++ b/update.yml @@ -0,0 +1,14 @@ +--- +- name: Apply all Linux updates + hosts: all + become: yes + tasks: + - name: Update all packages + package: + name: "*" + state: latest + register: update_result + + - name: Reboot if kernel updated + reboot: + when: update_result.changed \ No newline at end of file