linuxinstaller/ansible/update.yml

20 lines
450 B
YAML
Raw Normal View History

2024-10-06 23:44:04 +02:00
- name: Mise à jour des paquets
hosts: localhost
tasks:
- name: Mise à jour du cache
ansible.builtin.apt:
update_cache: true
- name: Mise à jour des paquets
ansible.builtin.apt:
name: "*"
state: latest
- name: Supprime les paquets devenus inutiles
ansible.builtin.apt:
autoremove: true
purge: true
- name: Nettoyage apt
ansible.builtin.apt:
clean: true