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