Add update.yml

This commit is contained in:
2025-07-20 19:00:00 +02:00
parent 77f16ce3d2
commit 9612aa0dc8

14
update.yml Normal file
View File

@@ -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