Created
February 3, 2018 14:18
-
-
Save cinhtau/d2dfcccf016ffa5141e49ab7a5d05b2a to your computer and use it in GitHub Desktop.
Playbook for upgrading my Raspberry Pi Cluster with Raspbian Stretch Lite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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