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

23 lines
370 B
YAML
Raw Normal View History

---
- 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
- name: purge any left over files
ansible.builtin.apt:
purge: true
...