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

18 lines
448 B
YAML

- 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