20 lines
450 B
YAML
20 lines
450 B
YAML
|
- 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
|