From 7da40dce190503fbf38aaa4addb3af8c41f6f90e Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Thu, 7 May 2026 17:15:03 +0200 Subject: [PATCH] apt yes --- training/apt-update.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 training/apt-update.yml diff --git a/training/apt-update.yml b/training/apt-update.yml new file mode 100644 index 0000000..280b00b --- /dev/null +++ b/training/apt-update.yml @@ -0,0 +1,17 @@ +- name: Actualitzar el sistema + hosts: all + become: yes + tasks: + + - name: Actualitzar caché apt + ansible.builtin.apt: + update_cache: yes + cache_valid_time: 3600 + + - name: Actualitzar tots els paquets + ansible.builtin.apt: + upgrade: yes + + - name: Eliminar paquets orfes + ansible.builtin.apt: + autoremove: yes \ No newline at end of file