ansible-role-debian-update/tasks/main.yml

22 lines
462 B
YAML
Raw Permalink Normal View History

2018-09-25 14:14:59 +07:00
---
2018-09-25 19:34:38 +07:00
# 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'