linux maintenance

This commit is contained in:
CalvinSteenbergen 2025-04-04 16:52:42 +02:00
parent 72c9b164b6
commit 199218371e

15
linux-maintenance.yaml Normal file
View file

@ -0,0 +1,15 @@
---
- hosts: "{{ target_hosts }}"
become: true
tasks:
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
- name: Upgrade all packages
ansible.builtin.apt:
upgrade: dist
autoremove: true
- name: Reboot machine
ansible.builtin.reboot: