pibox-ansible/ansible/roles/apt-update-system/tasks/main.yml

20 lines
312 B
YAML

---
- name: update the installed packages
ansible.builtin.apt:
update_cache: true
name: "*"
state: latest
- name: update the operating system
ansible.builtin.apt:
upgrade: dist
- name: clean up apt cache
ansible.builtin.apt:
autoclean: true
autoremove: true
purge: true
...