22 lines
462 B
YAML
22 lines
462 B
YAML
---
|
|
# tasks file for roles/debian-update
|
|
- name: Update packages list
|
|
apt:
|
|
update_cache: yes
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
- name: Upgrade packages
|
|
apt:
|
|
upgrade: yes
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
- name: Remove dependencies that are no longer required
|
|
apt:
|
|
autoremove: yes
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
- name: Remove useless packages from the cache
|
|
apt:
|
|
autoclean: yes
|
|
when: ansible_os_family == 'Debian'
|