Skip to content

Instantly share code, notes, and snippets.

@cinhtau
Created February 3, 2018 14:18
Show Gist options
  • Save cinhtau/d2dfcccf016ffa5141e49ab7a5d05b2a to your computer and use it in GitHub Desktop.
Save cinhtau/d2dfcccf016ffa5141e49ab7a5d05b2a to your computer and use it in GitHub Desktop.
Playbook for upgrading my Raspberry Pi Cluster with Raspbian Stretch Lite
---
- hosts: pi-cluster
tasks:
- ping: ~
- name: Update repositories cache
apt:
update_cache: yes
- name: Upgrade all packages to the latest version
apt:
name: "*"
state: latest
- name: Update all packages to the latest version
apt:
upgrade: dist
- name: Remove useless packages from the cache
apt:
autoclean: yes
- name: Remove dependencies that are no longer required
apt:
autoremove: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment