- name: Update repository cache using apt
apt:
update_cache: yes
- name: Update packages using apt
upgrade: dist
autoremove: yes