Files
Ansible/update.yml
2025-07-20 19:00:00 +02:00

14 lines
274 B
YAML

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