Skip to content

Instantly share code, notes, and snippets.

@corny
corny / apt-upgrade.yml
Created August 11, 2015 23:35
Ansible playbook that uses apt to upgrade packages and remove/purge unneeded packages
---
- hosts: all
environment:
LC_ALL: C
LANG: C
tasks:
- name: Update APT package cache
apt: update_cache=yes cache_valid_time=600