vn-ansible/roles/debian-upgrade/tasks/main.yaml

18 lines
448 B
YAML
Raw Normal View History

2024-10-16 15:53:15 +00:00
- name: Update APT package index
ansible.builtin.apt:
update_cache: true
force_apt_get: true
- name: Update all packages to their latest version
ansible.builtin.apt:
name: "*"
state: latest
force_apt_get: true
- name: Upgrade the OS (apt-get full-upgrade)
ansible.builtin.apt:
upgrade: full
force_apt_get: true
- name: Autoremove unused packages
ansible.builtin.apt:
autoremove: true
force_apt_get: true