2024-09-24 08:37:09 +00:00
|
|
|
- name: Update APT package index
|
2024-09-23 12:30:38 +00:00
|
|
|
ansible.builtin.apt:
|
|
|
|
update_cache: true
|
|
|
|
force_apt_get: true
|
2024-09-24 08:37:09 +00:00
|
|
|
- name: Update all packages to their latest version
|
2024-09-23 12:30:38 +00:00
|
|
|
ansible.builtin.apt:
|
|
|
|
name: "*"
|
|
|
|
state: latest
|
|
|
|
force_apt_get: true
|
2024-09-24 08:37:09 +00:00
|
|
|
- name: Upgrade the OS (apt-get full-upgrade)
|
2024-09-23 12:30:38 +00:00
|
|
|
ansible.builtin.apt:
|
|
|
|
upgrade: full
|
|
|
|
force_apt_get: true
|
2024-09-24 08:37:09 +00:00
|
|
|
- name: Autoremove unused packages
|
2024-09-23 12:30:38 +00:00
|
|
|
ansible.builtin.apt:
|
|
|
|
autoremove: true
|
|
|
|
force_apt_get: true
|