31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
---
|
|
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
# step1 - run apt-get update
|
|
- name: update index of all packages
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
force_apt_get: true
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
# step2 - run apt-get update
|
|
- name: update all packages to their latest version
|
|
ansible.builtin.apt:
|
|
name: "*"
|
|
state: latest
|
|
force_apt_get: true
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
# step3 - run apt-get full-upgrade
|
|
- name: upgrade the OS (apt-get full-upgrade)
|
|
ansible.builtin.apt:
|
|
upgrade: full
|
|
force_apt_get: true
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
# step4 - run apt autoremove
|
|
- name: autoremove packages unused dependency packages
|
|
ansible.builtin.apt:
|
|
autoremove: true
|
|
force_apt_get: true
|
|
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|