infra-les/ansible/upgrade.yml

13 lines
282 B
YAML
Raw Normal View History

2018-11-24 11:32:34 +00:00
- name: Update and upgrade apt packages
gather_facts: false
hosts: all
tasks:
- name: Upgrade packages
apt:
upgrade: yes
update_cache: yes
cache_valid_time: 86400 #One day
- name: Remove unused packages
apt:
autoremove: yes